Archive an agent
Transitions an agent to STATE_ARCHIVED. Archived agents are hidden from list results and cannot be used for objectives; active schedules are paused.
Path parameters
Workspace ID.
Agent ID. Accepts the canonical agent_… form or the external_id:<value> form.
Request body
Example request
{
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"id": "agent_01HXKD2E5NQM3T9AYWCFMGWT9Y"
}Response
OK
Example response
{
"metadata": {
"accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
},
"info": {
"createdBy": {
"metadata": {
"accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
"profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
}
}
}
}Changes
Changed in 4 of the 57 revisions of this API.25
- ●
removed the optional property
spec/allOf[AgentSpec]/inputDataSchemafrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
spec/allOf[AgentSpec]/systemPromptDataSchemato the response with the200statusresponse-optional-property-added
- ●
- ●
removed the optional property
metadata/allOf[ResourceMetadata]/bundleKeyfrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
info/allOf[AgentInfo]/createdBy/metadata/createdAtto the response with the200statusresponse-optional-property-added
This revision also has 27 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the optional property
spec/allOf[AgentSpec]/enableEpisodicMemoryto the response with the200statusresponse-optional-property-added
- ○
added the optional property
spec/allOf[AgentSpec]/episodicMemoryTtlto the response with the200statusresponse-optional-property-added
- ○
- ○
endpoint added
endpoint-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○