Skip to content
Navigation

Validate a playbook definition

Lints the playbook, optionally with a draft overlay merged over the stored document (same fields as update). Always 200 with { data: { issues } } — each issue carries severity: error | warning; warnings never block activation. Authorization: organization administrators only.

POST
https://api.cloudraker.com/playbooks/{playbookId}/validate
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

  • playbookId
    string
    required

Request body JSON required

  • name
    optional
    string
    maxLength: 200 · minLength: 1
  • description
    optional
    string
    maxLength: 5000
  • spaceTypes
    optional
    array of
    string
  • tasks
    optional
    array of
    object
    • id
      string
      required
      maxLength: 64 · minLength: 1
    • title
      string
      required
      maxLength: 200 · minLength: 1
    • instructions
      optional
      string
      or null
      maxLength: 4000
    • dependsOn
      optional
      array of
      string

      Task ids that must complete first.

    • executor
      optional
      agent
      or
      human

      human tasks are completed by a person out-of-band; the agent never does them.

    • assignee
      optional
      string
      or null

      User id. Human tasks only; null = anyone in the space.

  • model
    optional
    string
    or null
    maxLength: 200
  • actions
    optional
    array of
    object
    • installedActionId
      string
      required
      minLength: 1
    • preApproval
      optional
      boolean

      Gate the action behind a human approval.

    • postApproval
      optional
      boolean

      Review the action output before continuing.

    • dependsOn
      optional
      array of
      string

      Task ids only — an action may never depend on another action.

    • trigger
      optional
      agent
      or
      user

      user actions are started from the run view; the agent never proposes them.

Returns

200

Validation issues (possibly empty).

JSON
  • data
    object
    required
    • issues
      array of
      object
      required
      • path
        string
        required
      • message
        string
        required
      • severity
        error
        or
        warning
        required

Type to search…

↑↓ navigate↵ selectEsc close