Skip to content
Navigation

Decide an approval raised by a turn

Approves or rejects an action a turn proposed, optionally with edited parameters. The platform executes; the agent never holds the credential (spec §11). Every decision writes an audit row. An EGRESS approval — a parked request to an approval: true host in the version’s network policy — is decided only by an approver the agent version declares (approvals.approvers; empty means any member who can write the session), and its card is editable: false, so editedParams is refused. Authorization: work_session:comment on the session, OR space:contribute on one of its linked spaces; a desk session is writable only by its owner. Any denial is 404.

POST
https://api.cloudraker.com/workspace/sessions/{sessionId}/approvals/{approvalId}
Try it
Path parameters
Query parameters
Request body
Live API request

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

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • sessionId
    string
    required
  • approvalId
    string
    required

Query parameters

  • turnId
    optional
    string
    maxLength: 128 · minLength: 1

Request body JSON required

  • decision
    approve
    or
    reject
    required
  • note
    optional
    string
    maxLength: 4000
  • editedParams
    optional
    map of
    unknown
  • edits
    optional
    map of
    unknown

Returns

200

The engine’s own result for the turn.

JSON
  • data
    map of
    unknown
    required

400

validation_failed — a malformed body.

403

not_an_approver — the agent version does not name this caller among the approvers of its egress requests.
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

404

No such session or turn, or the caller may not write it.

409

run_not_running — the turn is already terminal.

422

egress_not_editable — an egress approval releases the request the agent already made; its parameters cannot be edited.
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

503

approval_owner_unavailable — approval ownership could not be resolved.
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