Trigger categories
Trigger categories: 5 operations of the ChaosDesk REST API.
- GET
/api/trigger_categoriesRetrieves the collection of TriggerCategory resources. - POST
/api/trigger_categoriesCreates a TriggerCategory resource. - GET
/api/trigger_categories/{id}Retrieves a TriggerCategory resource. - PATCH
/api/trigger_categories/{id}Updates the TriggerCategory resource. - DELETE
/api/trigger_categories/{id}Removes the TriggerCategory resource.
Retrieves the collection of TriggerCategory resources.
Responses
200TriggerCategory collection403Forbidden
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/trigger_categories" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Creates a TriggerCategory resource.
Request body application/json
titlestringrequiredpositioninteger
Responses
201TriggerCategory resource created400Invalid input403Forbidden422An error occurred
Example request
curl -X POST "https://yourcompany.chaosdesk.io/api/trigger_categories" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"title":"string"}' Retrieves a TriggerCategory resource.
GET/api/trigger_categories/{id}
Parameters
idstringpathrequired- TriggerCategory identifier
Responses
200TriggerCategory resource403Forbidden404Not found
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/trigger_categories/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Updates the TriggerCategory resource.
PATCH/api/trigger_categories/{id}
Parameters
idstringpathrequired- TriggerCategory identifier
Request body application/merge-patch+json
titlestringpositioninteger
Responses
200TriggerCategory resource updated400Invalid input403Forbidden404Not found422An error occurred
Example request
curl -X PATCH "https://yourcompany.chaosdesk.io/api/trigger_categories/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/merge-patch+json" \
-d '{"title":"string","position":0}' Removes the TriggerCategory resource.
DELETE/api/trigger_categories/{id}
Parameters
idstringpathrequired- TriggerCategory identifier
Responses
204TriggerCategory resource deleted403Forbidden404Not found
Example request
curl -X DELETE "https://yourcompany.chaosdesk.io/api/trigger_categories/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json"