Skip to content
Navigation

Decide a playbook run approval

Approves or rejects a pending approval on the run — either a pre-action gate (allow the action to run) or a post-action output review. Authorization: space:contribute (org admins bypass); missing → 403. Body: decision ("approve" | "reject", required); optional note (≤4000 chars); and, when approving, you may edit before proceeding — editedParams (override the action params), editedFileIds (1–200, override the input files), editedOutput (override the reviewed output). The request body is capped at 1 MiB → 413 payload_too_large if exceeded. Returns 200 { data: Approval } with the updated approval.

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

Request body JSON required

  • decision
    approve
    or
    reject
    required
  • 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

The updated approval.

JSON
  • data
    object
    required
    • 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

413

Request body exceeded 1 MiB (payload_too_large)

Type to search…

↑↓ navigate↵ selectEsc close