Assignment rules
Assignment rules: 5 operations of the ChaosDesk REST API.
- GET
/api/assignment_rulesRetrieves the collection of AssignmentRule resources. - POST
/api/assignment_rulesCreates a AssignmentRule resource. - GET
/api/assignment_rules/{id}Retrieves a AssignmentRule resource. - PATCH
/api/assignment_rules/{id}Updates the AssignmentRule resource. - DELETE
/api/assignment_rules/{id}Removes the AssignmentRule resource.
Retrieves the collection of AssignmentRule resources.
Responses
200AssignmentRule collection403Forbidden
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/assignment_rules" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Creates a AssignmentRule resource.
Request body application/json
conditionsobjectagentsstring (iri-reference)[]viewsView[]- Views these agents may play; empty = every view they can see.
max_open_ticketsinteger | null- Capacity: open (new + open) tickets an agent may hold; null = unlimited.
auto_assignboolean- Assign new, unassigned matching tickets automatically.
strategy"round_robin" | "least_loaded"only_onlineboolean- Auto-assign only to agents whose status is "online".
titlestringrequireddescriptionstring | nullactivebooleanpositioninteger
Responses
201AssignmentRule resource created400Invalid input403Forbidden422An error occurred
Example request
curl -X POST "https://yourcompany.chaosdesk.io/api/assignment_rules" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"title":"string"}' Retrieves a AssignmentRule resource.
Parameters
idstringpathrequired- AssignmentRule identifier
Responses
200AssignmentRule resource403Forbidden404Not found
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/assignment_rules/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Updates the AssignmentRule resource.
PATCH/api/assignment_rules/{id}
Parameters
idstringpathrequired- AssignmentRule identifier
Request body application/merge-patch+json
conditionsobjectagentsstring (iri-reference)[]viewsView[]- Views these agents may play; empty = every view they can see.
max_open_ticketsinteger | null- Capacity: open (new + open) tickets an agent may hold; null = unlimited.
auto_assignboolean- Assign new, unassigned matching tickets automatically.
strategy"round_robin" | "least_loaded"only_onlineboolean- Auto-assign only to agents whose status is "online".
titlestringdescriptionstring | nullactivebooleanpositioninteger
Responses
200AssignmentRule resource updated400Invalid input403Forbidden404Not found422An error occurred
Example request
curl -X PATCH "https://yourcompany.chaosdesk.io/api/assignment_rules/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/merge-patch+json" \
-d '{"conditions":"string","agents":"string"}' Removes the AssignmentRule resource.
DELETE/api/assignment_rules/{id}
Parameters
idstringpathrequired- AssignmentRule identifier
Responses
204AssignmentRule resource deleted403Forbidden404Not found
Example request
curl -X DELETE "https://yourcompany.chaosdesk.io/api/assignment_rules/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json"