Skip to main content
PATCH
Change an agent

Authorizations

x-api-key
string
header
required

Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.

Path Parameters

id
string
required
Required string length: 1 - 160

Body

application/json
name
string
Required string length: 1 - 120
brief
string

The agent's definition, as Markdown: who it is, what it does, how it reports. Every run of the agent starts from it.

Required string length: 1 - 20000
toolPolicy
object
defaultExecutionTarget
enum<string>
Available options:
desktop,
cloud
monthlyBudgetMicros
integer | null

Monthly spending limit in millionths of a US dollar. Recorded now; not enforced yet.

Required range: 0 <= x <= 1000000000000

Response

Agent updated.

agent
object
required
revision
object
required
routineCount
integer
required
Required range: 0 <= x <= 9007199254740991
role
enum<string>
default:owner

What the caller may do with this agent.

Available options:
owner,
manager,
collaborator
owner
object | null
sharedWith
object[]
routines
object[]
spend
object
openRequestCount
integer
default:0
Required range: 0 <= x <= 9007199254740991
audience
object
listed
boolean
default:true

False when the caller can use the agent through their organization or a team but has not opened it and it was not added for them: offer it, do not list it.

canShare
boolean
default:true

Whether the caller may share this agent now: their role allows it and the organization lets them.