Archive or unarchive an agent
Changed onSoft-archives the agent — it is excluded from listings and stops accepting calls, but all data is preserved and the operation is fully reversible.
Pass ?on=false to unarchive (restore) a previously archived agent.
409 is returned when:
- The agent is already in the requested state ("Agent is already archived" / "Agent is already active")
- The agent is linked to an active campaign ("Agent is associated with the [status] campaign "[name]". Complete or remove the campaign before archiving.")
Request
- Base URLhttps://api.smallest.ai/atoms/v1
- URLhttps://api.smallest.ai/atoms/v1/agent/{id}/archive
- AuthHTTP bearer
Path parameters
Query parameters
"true" (default) — archive the agent. "false" — unarchive (restore) a previously archived agent.
Response
Agent archived or unarchived successfully
Example response
{
"status": true
}Changes
- breaking
the
queryrequest parameteronwas restricted to a list of enum values - breaking
for the
queryrequest parameteron, default value was changed fromtruetotrue - info
added the new enum value
falseto thequeryrequest parameteron - info
added the new enum value
trueto thequeryrequest parameteron - info
for the
queryrequest parameteron, the type was generalized frombooleantostring
- breaking
- warning
removed the optional property
from the response with the status - info
added the new optional
queryrequest parameteron - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- warning