Skip to content
Navigation

Import the org playbooks as agents

Creates one agent per stored playbook definition (agent-refactor-spec §13): the handle comes from the playbook name, and the published version mirrors the playbook. Idempotent and additive — a playbook that already has an agent comes back in skipped, and the source playbook documents are never modified. Every playbook has its own error boundary: a legacy document the current schema refuses lands in failed instead of failing the whole import. Authorization: organization administrators only. Response: { data: { created: [{ playbookId, agentId, handle }], skipped: string[], failed: [{ playbookId, error }] } }.

POST
https://api.cloudraker.com/agents/migrate
Try it
Live API request

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

Authorization

  • bearerAuth
    HTTP
    required

Returns

200

What was created and what was skipped.

JSON
  • data
    object
    required
    • created
      array of
      object
      required
      • playbookId
        string
        required
      • agentId
        string
        required
      • handle
        string
        required
    • skipped
      array of
      string
      required

      Playbook ids that already have an agent — the idempotency answer.

    • failed
      array of
      object
      required

      Playbooks the import could not express as an agent (a legacy document the current schema refuses). Each is skipped on its own, the rest of the org still imports.

      • playbookId
        string
        required
      • error
        string
        required

Type to search…

↑↓ navigate↵ selectEsc close