Update Work Agent
PATCH /work/agents/{agent_id}
PATCH
/work/agents/{agent_id}
Replace one agent’s profile, versioned.
expected_version is the version you read; a stale one is a 409
so two editors cannot silently overwrite each other’s instructions.
Authorizations
Parameters
Path Parameters
agent_id
required
Agent id
string format: uuid
Agent id
Header Parameters
Request Body required
A versioned profile edit. Mirrors work.agent_profile_router.AgentProfileEdit.
object
expected_version
required
The version you read; a stale one is a 409
integer
profile
required
The full new profile
object
avatar
Avatar glyph
string
description
required
The agent’s instructions
string
name
required
Agent name
string
role
Role shown beside the name
string
visibility
private to its owner, or shared with the organization
string
Responses
200
Successful Response
object
data
required
One Work agent profile as the caller may see it.
object
key
additional properties
any
pagination
Any of:
object
has_next
required
Whether there are more pages
boolean
limit
required
Items per page
integer
notes
Any of:
Array<string>
null
page
required
Current page number (1-indexed)
integer
total
required
Total number of items
integer
null
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string