POST /api/v1/cloud/agents/{agent_id}/archive
Archives the specified Agent. Archived Agents are hidden from the default list but remain retrievable by ID.
Headers
Path parameters
Request body
No request body.Example request
Example response
HTTP 200 OKResponse fields
Returns the full Agent object after archival.updated_at reflects the time of the archive operation.
Errors
See Errors for the full error envelope.
Notes
- Archive retains Agent data.
- Archived Agents are excluded from the default list returned by
GET /api/v1/cloud/agents. - Pass
include_archived=trueonGET /api/v1/cloud/agentsto include archived Agents in list results. - They remain retrievable via
GET /api/v1/cloud/agents/{agent_id}. - The operation is idempotent; archiving an already-archived Agent does not raise an error.
- Archiving does not increment the Agent
versionand does not create a version snapshot.
Related
Agent setup
Create a reusable, versioned agent configuration.