Trigger categories

Trigger categories: 5 operations of the ChaosDesk REST API.

Retrieves the collection of TriggerCategory resources.

GET/api/trigger_categories

Responses

  • 200TriggerCategory collection
  • 403Forbidden

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.

POST/api/trigger_categories

Request body application/json

titlestringrequired
positioninteger

Responses

  • 201TriggerCategory resource created
  • 400Invalid input
  • 403Forbidden
  • 422An 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 resource
  • 403Forbidden
  • 404Not 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

titlestring
positioninteger

Responses

  • 200TriggerCategory resource updated
  • 400Invalid input
  • 403Forbidden
  • 404Not found
  • 422An 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 deleted
  • 403Forbidden
  • 404Not found

Example request

curl -X DELETE "https://yourcompany.chaosdesk.io/api/trigger_categories/{id}" \
  -H "Authorization: Bearer $CHAOSDESK_TOKEN" \
  -H "Accept: application/json"