Delete the agent — only with zero live sessions (409 agent_has_sessions) [admin]
Changed onAn agent that never had a session is deleted (outcome deleted). One whose sessions were all deleted is archived instead (outcome archived), so their history keeps naming it: it stays readable, is listed with archived: true, and starts no new sessions — the same state POST /agents/{id}/archive leaves.
Request
- Base URLhttps://api.agentsky.dev/v1
- URLhttps://api.agentsky.dev/v1/agents/{id}
- AuthHTTP bearer
Path parameters
The agent id (agent_…)
Response
OK
Changes
- breaking
the
response property const valuetruewas removed for the status - warning
added the new
trueenum value to theresponse property for the response status - info
added the optional property
/to the response with the status - info
the response property
became required for the status - info
the response property
/became required for the status - info
the response property
/became required for the status - info
added the required property
to the response with the status
- breaking