Dynamic content items
Dynamic content items: 5 operations of the ChaosDesk REST API.
- GET
/api/dynamic_content_itemsRetrieves the collection of DynamicContentItem resources. - POST
/api/dynamic_content_itemsCreates a DynamicContentItem resource. - GET
/api/dynamic_content_items/{id}Retrieves a DynamicContentItem resource. - PATCH
/api/dynamic_content_items/{id}Updates the DynamicContentItem resource. - DELETE
/api/dynamic_content_items/{id}Removes the DynamicContentItem resource.
Retrieves the collection of DynamicContentItem resources.
Responses
200DynamicContentItem collection403Forbidden
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/dynamic_content_items" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Creates a DynamicContentItem resource.
POST/api/dynamic_content_items
Request body application/json
namestringrequired- Placeholder key:
{{dc.<name>}}. default_localestringrequiredvariantsobject- locale → text
Responses
201DynamicContentItem resource created400Invalid input403Forbidden422An error occurred
Example request
curl -X POST "https://yourcompany.chaosdesk.io/api/dynamic_content_items" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"name":"string","default_locale":"string"}' Retrieves a DynamicContentItem resource.
GET/api/dynamic_content_items/{id}
Parameters
idstringpathrequired- DynamicContentItem identifier
Responses
200DynamicContentItem resource403Forbidden404Not found
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/dynamic_content_items/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Updates the DynamicContentItem resource.
PATCH/api/dynamic_content_items/{id}
Parameters
idstringpathrequired- DynamicContentItem identifier
Request body application/merge-patch+json
namestring- Placeholder key:
{{dc.<name>}}. default_localestringvariantsobject- locale → text
Responses
200DynamicContentItem resource updated400Invalid input403Forbidden404Not found422An error occurred
Example request
curl -X PATCH "https://yourcompany.chaosdesk.io/api/dynamic_content_items/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/merge-patch+json" \
-d '{"name":"string","default_locale":"string"}' Removes the DynamicContentItem resource.
DELETE/api/dynamic_content_items/{id}
Parameters
idstringpathrequired- DynamicContentItem identifier
Responses
204DynamicContentItem resource deleted403Forbidden404Not found
Example request
curl -X DELETE "https://yourcompany.chaosdesk.io/api/dynamic_content_items/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json"