Custom agent status
Custom agent status: 5 operations of the ChaosDesk REST API.
- GET
/api/custom_agent_statusesRetrieves the collection of CustomAgentStatus resources. - POST
/api/custom_agent_statusesCreates a CustomAgentStatus resource. - GET
/api/custom_agent_statuses/{id}Retrieves a CustomAgentStatus resource. - PATCH
/api/custom_agent_statuses/{id}Updates the CustomAgentStatus resource. - DELETE
/api/custom_agent_statuses/{id}Removes the CustomAgentStatus resource.
Retrieves the collection of CustomAgentStatus resources.
Responses
200CustomAgentStatus collection403Forbidden
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/custom_agent_statuses" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Creates a CustomAgentStatus resource.
POST/api/custom_agent_statuses
Request body application/json
namestringrequireddescriptionstring | nullbase_status"online" | "away" | "offline"- What routing sees: only Online agents receive chats and auto-assigned tickets.
activebooleanpositioninteger
Responses
201CustomAgentStatus resource created400Invalid input403Forbidden422An error occurred
Example request
curl -X POST "https://yourcompany.chaosdesk.io/api/custom_agent_statuses" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"name":"string"}' Retrieves a CustomAgentStatus resource.
GET/api/custom_agent_statuses/{id}
Parameters
idstringpathrequired- CustomAgentStatus identifier
Responses
200CustomAgentStatus resource403Forbidden404Not found
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/custom_agent_statuses/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Updates the CustomAgentStatus resource.
PATCH/api/custom_agent_statuses/{id}
Parameters
idstringpathrequired- CustomAgentStatus identifier
Request body application/merge-patch+json
namestringdescriptionstring | nullbase_status"online" | "away" | "offline"- What routing sees: only Online agents receive chats and auto-assigned tickets.
activebooleanpositioninteger
Responses
200CustomAgentStatus resource updated400Invalid input403Forbidden404Not found422An error occurred
Example request
curl -X PATCH "https://yourcompany.chaosdesk.io/api/custom_agent_statuses/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/merge-patch+json" \
-d '{"name":"string","description":"string"}' Removes the CustomAgentStatus resource.
DELETE/api/custom_agent_statuses/{id}
Parameters
idstringpathrequired- CustomAgentStatus identifier
Responses
204CustomAgentStatus resource deleted403Forbidden404Not found
Example request
curl -X DELETE "https://yourcompany.chaosdesk.io/api/custom_agent_statuses/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json"