Update an agent's file

POST /api/v1/code/agents/{agentId} on the Caveman Cloud control plane. Requires the code:write scope. Not exposed to autonomous agents: The Agents API is driven by a service account's code:run key, or by a person in the Code app and console. An agent connection works inside a Code session and never starts, lists or drives Code sessions or agents from a control-plane connection.

post/code/agents/{agentId}

Request

  • Base URL
    https://api.caveman.so/api/v1
  • URL
    https://api.caveman.so/api/v1/code/agents/{agentId}
  • Auth
    • OAuth 2
      Authorization code: /api/v1/oauth/authorize
      Token URL: /api/v1/oauth/token scopes: code:write
    • or HTTP bearer
    • or API key in cookie cave_access
    • or API key in cookie __Secure-cave_identity.session_token

Request body

filestring required
versioninteger

Response

The agent

idstring uuid required
organization_idstring uuid
namestring required
versioninteger required
file_sha256string required
filestring

The agent file's text; on a single read.

created_by_user_idstring uuid nullable
created_by_service_account_idstring uuid nullable
created_atstring date-time required
updated_atstring date-time required
archived_atstring date-time nullable

Changes

No recorded changes to this operation across all 1 revision of this API.