Skip to content
Navigation

Activate a playbook definition

Transitions the playbook identified by playbookId to active status so it can be run. Authorization: organization administrators only — other callers are rejected with 403. No request body. Response: { data: Playbook } with the updated status.

POST
https://api.cloudraker.com/playbooks/{playbookId}/activate
Try it
Path parameters
Live API request

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

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • playbookId
    string
    required

Returns

200

The activated playbook definition.

JSON
  • data
    object
    required
    • id
      string
      required
    • name
      string
      required
    • description
      string
      required
    • status
      draft
      or
      active
      or
      archived
      required
    • spaceTypes
      array of
      string
      required

      Space-type identifiers this playbook applies to. Empty means every space type.

    • tasks
      array of
      object
      required
      • id
        string
        required
        maxLength: 64 · minLength: 1
      • title
        string
        required
        maxLength: 200 · minLength: 1
      • instructions
        required

        Any of the following:

        • string
        • null
      • dependsOn
        array of
        string
        required

        Task ids that must complete first.

      • executor
        agent
        or
        human
        required

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

      • assignee
        string | null
        required

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

    • actions
      array of
      object
      required
      • installedActionId
        string
        required
        minLength: 1
      • preApproval
        boolean
        required

        Gate the action behind a human approval.

      • postApproval
        boolean
        required

        Review the action output before continuing.

      • dependsOn
        array of
        string
        required

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

      • trigger
        agent
        or
        user
        required

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

    • model
      string | null
      required

      Optional model override for agent runs. Validated against an allowlist.

    • version
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • createdAt
      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))$
    • updatedAt
      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))$
    • createdBy
      string
      required

Type to search…

↑↓ navigate↵ selectEsc close