Skip to content
Navigation

Update a playbook definition

Partially updates the playbook definition identified by playbookId and bumps its version. Authorization: organization administrators only — other callers are rejected with 403. All body fields are optional: name (1-200), description (<=5000), spaceTypes (replaces the list), tasks (<=30, replaces the whole list; each { id, title, instructions?, dependsOn? (ids of tasks that must complete first) }), actions (<=20, replaces the whole list; each { installedActionId, preApproval?, postApproval?, dependsOn? (task ids only) }). Response: { data: Playbook }.

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

The updated 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