Skip to content
Navigation

Archive an agent

Archives the agent and stops its published version from starting new runs. It drops out of the directory unless includeArchived=true is passed. Runs already in flight are untouched. Archiving is a durable stop: publishing an archived agent answers 409 agent_archived — POST /agents/:agentRef/unarchive is the way back. Authorization: organization administrators only. A private agent is visible only to its owner; every other caller gets 404. Response: { data: Agent }.

POST
https://api.cloudraker.com/agents/{agentRef}/archive
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

  • agentRef
    string
    required

Returns

200

The archived agent.

JSON
  • data
    object
    required
    • id
      string
      required
    • handle
      string
      required

      Unique per org, derived from the name when not given (mike, mike-2, …).

    • name
      string
      required
    • role
      string
      required
    • avatar
      object
      required
      • kind
        initials
        or
        generated
        required
      • color
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
    • visibility
      org
      or
      private
      required
    • ownerUserId
      string
      required
    • publishedVersionId
      string | null
      required

      The agv_ id a run is started with. Null until the agent is published.

    • draftVersionId
      string
      required
    • emailTriggerId
      string | null
      required
    • sourcePlaybookId
      string | null
      required

      Set on agents created by the playbook migration; null otherwise.

    • 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
    • archivedAt
      required

      Any of the following:

      • string
      • null
    • documentAgent
      optional
      boolean

404

not_found — no such agent in this organization.

Type to search…

↑↓ navigate↵ selectEsc close