Dynamic content items

Dynamic content items: 5 operations of the ChaosDesk REST API.

Retrieves the collection of DynamicContentItem resources.

GET/api/dynamic_content_items

Responses

  • 200DynamicContentItem collection
  • 403Forbidden

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_localestringrequired
variantsobject
locale → text

Responses

  • 201DynamicContentItem resource created
  • 400Invalid input
  • 403Forbidden
  • 422An 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 resource
  • 403Forbidden
  • 404Not 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_localestring
variantsobject
locale → text

Responses

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

Example request

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