Skip to content
Navigation

Decide a batch of playbook run approvals

Applies up to 20 approval decisions in order. Each decision is validated independently (same fields as the single-decision endpoint, plus approvalId) and failures are reported per item without rolling back the others; the agent loop is resumed once at the end. Authorization: space:contribute (org admins bypass); missing → 403. The body is capped at 1 MiB → 413 payload_too_large. Returns 200 { data: Outcome[] } in request order.

POST
https://api.cloudraker.com/spaces/{spaceId}/playbook-runs/{runId}/approvals:decide-batch
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

  • spaceId
    string
    required
  • runId
    string
    required

Request body JSON required

  • decisions
    array of
    object
    required
    • decision
      approve
      or
      reject
      required
    • approvalId
      string
      required
      minLength: 1
    • note
      optional
      string

      Required when rejecting.

      maxLength: 4000
    • editedParams
      optional
      map of
      unknown

      Override the action parameters.

    • editedFileIds
      optional
      array of
      string
      minLength: 1
    • editedOutput
      optional
      unknown

      Override the reviewed output.

Returns

200

Per-decision outcomes, in request order.

JSON
  • data
    array of
    object
    required
    • approvalId
      string
      required
    • status
      decided
      or
      error
      required
    • approval
      required

      Any of the following:

      • PlaybookApproval
        • id
          string
          required
        • kind
          pre
          or
          post
          required

          pre gates the dispatch; post reviews the output.

        • actionSlug
          string
          required
        • installedActionId
          string
          required
        • actionName
          string
          required
        • actionRunId
          string | null
          required
        • rationale
          string | null
          required
        • files
          array of
          object
          required
          • id
            string
            required
          • name
            string
            required
        • params
          required

          Any of the following:

          • map<unknown>
          • null
        • output
          required

          Any of the following:

          • Option 1
          • null
        • artifacts
          array of
          object
          required
          • id
            string
            required
          • kind
            string
            required
          • title
            string
            required
          • url
            string
            required
          • open
            tab
            or
            embed
            required
        • status
          pending
          or
          approved
          or
          rejected
          or
          void
          required
        • requestedAt
          string
          required
          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))$
        • decidedBy
          string | null
          required
        • decidedAt
          required

          Any of the following:

          • string
          • null
        • note
          string | null
          required
        • editedParams
          required

          Any of the following:

          • map<unknown>
          • null
        • editedFileIds
          required

          Any of the following:

          • array<string>
          • null
        • editedOutput
          required

          Any of the following:

          • Option 1
          • null
      • null
    • error
      string | null
      required

413

Request body exceeded 1 MiB (payload_too_large)

Type to search…

↑↓ navigate↵ selectEsc close