Triggers
Triggers: 5 operations of the ChaosDesk REST API.
- GET
/api/triggersRetrieves the collection of Trigger resources. - POST
/api/triggersCreates a Trigger resource. - GET
/api/triggers/{id}Retrieves a Trigger resource. - PATCH
/api/triggers/{id}Updates the Trigger resource. - DELETE
/api/triggers/{id}Removes the Trigger resource.
Retrieves the collection of Trigger resources.
Responses
200Trigger collection403Forbidden
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/triggers" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Creates a Trigger resource.
Request body application/json
conditionsobjectactionsobject[]categorystring | null (iri-reference)- Zendesk trigger category (null = uncategorised, runs before every category).
titlestringrequireddescriptionstring | nullactivebooleanpositioninteger
Responses
201Trigger resource created400Invalid input403Forbidden422An error occurred
Example request
curl -X POST "https://yourcompany.chaosdesk.io/api/triggers" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"title":"string"}' Retrieves a Trigger resource.
Parameters
idstringpathrequired- Trigger identifier
Responses
200Trigger resource403Forbidden404Not found
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/triggers/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Updates the Trigger resource.
Parameters
idstringpathrequired- Trigger identifier
Request body application/merge-patch+json
conditionsobjectactionsobject[]categorystring | null (iri-reference)- Zendesk trigger category (null = uncategorised, runs before every category).
titlestringdescriptionstring | nullactivebooleanpositioninteger
Responses
200Trigger resource updated400Invalid input403Forbidden404Not found422An error occurred
Example request
curl -X PATCH "https://yourcompany.chaosdesk.io/api/triggers/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/merge-patch+json" \
-d '{"conditions":"string","actions":"string"}' Removes the Trigger resource.
Parameters
idstringpathrequired- Trigger identifier
Responses
204Trigger resource deleted403Forbidden404Not found
Example request
curl -X DELETE "https://yourcompany.chaosdesk.io/api/triggers/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json"