Create Item

POST {{baseUrl}}/api/v2/dynamic_content/items

Create a new content item, with one or more variants in the item's variants array. See Specifying item variants.

The default_locale_id and variant locale_id values must be one of the locales the account has active. You can get the list with the List Locales endpoint.

Allowed For

  • Admins, Agents

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: Created

{"item":{"created_at":"2015-05-13T22:33:12Z","default_locale_id":1,"id":47,"name":"Snowboard Problem","outdated":false,"placeholder":"{{dc.snowboard_problem}}","updated_at":"2015-05-13T22:33:12Z","url":"https://company.zendesk.com/api/v2/dynamic_content/items/47.json","variants":[{"active":true,"content":"Voici mon contenu dynamique en français","created_at":"2015-05-13T22:33:12Z","default":true,"id":47,"locale_id":16,"outdated":false,"updated_at":"2015-05-13T22:33:12Z","url":"https://company.zendesk.com/api/v2/dynamic_content/items/47/variants/47.json"},{"active":true,"content":"Este es mi contenido dinámico en español","created_at":"2015-05-13T22:33:12Z","default":false,"id":48,"locale_id":2,"outdated":false,"updated_at":"2015-05-13T22:33:12Z","url":"https://company.zendesk.com/api/v2/dynamic_content/items/47/variants/48.json"}]}}