Skip to content
Navigation

Change what a commitment covers or when it next runs

PATCH
https://api.cloudraker.com/me/assistant/commitments/{commitmentId}
Try it
Path parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • commitmentId
    string
    required
    pattern: ^cmt_[0-9A-HJKMNP-TV-Z]{26}$

Request body JSON required

  • version
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991
  • outcome
    optional
    string
    maxLength: 400 · minLength: 1
  • completion
    optional
    string
    maxLength: 400 · minLength: 1
  • nextAction
    optional
    string
    maxLength: 2000 · minLength: 1
  • schedule
    optional
    string
    maxLength: 120 · minLength: 1
  • nextWakeAt
    optional
    string
    format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$

Returns

200

Change what a commitment covers or when it next runs

JSON
  • data
    object
    required
    • id
      string
      required
      pattern: ^cmt_[0-9A-HJKMNP-TV-Z]{26}$
    • outcome
      string
      required
    • completion
      string
      required
    • nextAction
      string
      required
    • schedule
      string | null
      required
    • state
      active
      or
      waiting
      or
      blocked
      or
      completed
      or
      cancelled
      or
      failed
      required
    • origin
      chat
      or
      routine
      or
      owner
      required
    • background
      boolean
      required
    • originEntryId
      string | null
      required
    • nextWakeAt
      required

      Any of the following:

      • string
      • null
    • waitingFor
      string | null
      required
    • blocker
      string | null
      required
    • version
      integer
      required

      Send it back with an edit.

      maximum: 9007199254740991 · minimum: -9007199254740991
    • running
      boolean
      required
    • updatedAt
      string
      required
    • attempts
      object
      required
      • total
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
      • succeeded
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
      • failed
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
    • receipts
      array of
      object
      required
      • attemptId
        string
        required
      • state
        running
        or
        succeeded
        or
        failed
        or
        cancelled
        or
        unknown_effect
        or
        interrupted
        +1 more
        required
      • startedAt
        string
        required
      • finishedAt
        required

        Any of the following:

        • string
        • null
      • outcome
        unverified
        or
        verified
        or
        failed
        or
        unknown
        required
      • outcomeDetail
        string | null
        required
      • result
        required

        The saved file, only once it is stored.

        Any of the following:

        • object
          • fileId
            string
            required
          • name
            string
            required
        • null
      • delivery
        object
        required
        • state
          none
          or
          pending
          or
          delivered
          or
          suppressed
          or
          failed
          required
        • at
          required

          Any of the following:

          • string
          • null
        • entryId
          string | null
          required
        • reason
          string | null
          required

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

403

An active personal account is required.

404

commitment_not_found.
JSON
  • error
    string
    required

    The sentence a human reads.

  • error_code
    string
    required

    The stable snake_case branch key.

  • issues
    optional
    array of
    object

    Per-field detail, present only on a validation failure.

    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

409

commitment_conflict: it changed; reload. commitment_closed.
JSON
  • error
    string
    required

    The sentence a human reads.

  • error_code
    string
    required

    The stable snake_case branch key.

  • issues
    optional
    array of
    object

    Per-field detail, present only on a validation failure.

    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

422

invalid_schedule or invalid_wake.
JSON
  • error
    string
    required

    The sentence a human reads.

  • error_code
    string
    required

    The stable snake_case branch key.

  • issues
    optional
    array of
    object

    Per-field detail, present only on a validation failure.

    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

Type to search…

↑↓ navigate↵ selectEsc close