openapi: 3.1.0 info: title: Zendesk Dynamic Content description: Needs a description. paths: /api/v2/dynamic_content/items: get: operationId: ListDynamicContents tags: - Dynamic Content summary: Zendesk Get Api V2 Dynamic_content Items description: > Returns a list of all dynamic content items for your account if accessed as an admin or agents who have permission to manage dynamic content. #### Allowed For * Admins, Agents #### Pagination * Cursor pagination (recommended) * Offset pagination See [Pagination](/api-reference/introduction/pagination/). responses: '200': description: Success response content: application/json: schema: $ref: '#/components/schemas/DynamicContentsResponse' examples: default: $ref: '#/components/examples/DynamicContentsResponseExample' post: operationId: CreateDynamicContent tags: - Dynamic Content summary: Zendesk Post Api V2 Dynamic_content Items description: > Create a new content item, with one or more variants in the item's `variants` array. See [Specifying item variants](#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](/api-reference/ticketing/account-configuration/locales/#list-locales) endpoint. #### Allowed For * Admins, Agents responses: '201': description: Created response content: application/json: schema: $ref: '#/components/schemas/DynamicContentResponse' examples: default: $ref: '#/components/examples/DynamicContentResponseExample' /api/v2/dynamic_content/items/{dynamic_content_item_id}: parameters: - $ref: '#/components/parameters/DynamicContentItemId' get: operationId: ShowDynamicContentItem tags: - Dynamic Content summary: Zendesk Get Api V2 Dynamic_content Items Dynamic_content_item_id description: | #### Allowed For * Admins, Agents responses: '200': description: Success response content: application/json: schema: $ref: '#/components/schemas/DynamicContentResponse' examples: default: $ref: '#/components/examples/DynamicContentResponseExample' put: operationId: UpdateDynamicContentItem tags: - Dynamic Content summary: Zendesk Put Api V2 Dynamic_content Items Dynamic_content_item_id description: > The only attribute you can change is the name. To add a variant to the item, or to update or delete the variants of the item, use the [Item Variants API](/api-reference/ticketing/ticket-management/dynamic_content_item_variants/#update-many-variants). #### Allowed For * Admins, Agents responses: '200': description: Success response content: application/json: schema: $ref: '#/components/schemas/DynamicContentResponse' examples: default: $ref: '#/components/examples/DynamicContentUpdateResponseExample' delete: operationId: DeleteDynamicContentItem tags: - Dynamic Content summary: Zendesk Delete Api V2 Dynamic_content Items Dynamic_content_item_id description: | #### Allowed For * Admins, Agents responses: '204': description: No Content response /api/v2/dynamic_content/items/{dynamic_content_item_id}/variants: parameters: - $ref: '#/components/parameters/DynamicContentItemId' get: operationId: DynamicContentListVariants tags: - Dynamic Content Item Variants summary: Zendesk Get Api V2 Dynamic_content Items Dynamic_content_item_id Variants description: | Returns all the variants of the specified dynamic content item. #### Allowed For * Admins * Agents who have permission to manage dynamic content #### Pagination * Cursor pagination See [Pagination](/api-reference/introduction/pagination/). responses: '200': description: Success response content: application/json: schema: $ref: '#/components/schemas/DynamicContentVariantsResponse' examples: default: $ref: '#/components/examples/DynamicContentVariantsResponseExample' post: operationId: CreateDynamicContentVariant tags: - Dynamic Content Item Variants summary: Zendesk Post Api V2 Dynamic_content Items Dynamic_content_item_id Variants description: > You can only create one variant for each locale id. If a locale variant already exists, the request is rejected. #### Allowed For * Admins, Agents responses: '201': description: Created response content: application/json: schema: $ref: '#/components/schemas/DynamicContentVariantResponse' examples: default: $ref: '#/components/examples/DynamicContentVariantResponseExample' /api/v2/dynamic_content/items/{dynamic_content_item_id}/variants/{dynamic_content_variant_id}: parameters: - $ref: '#/components/parameters/DynamicContentItemId' - $ref: '#/components/parameters/DynamicContentVariantId' get: operationId: ShowDynamicContentVariant tags: - Dynamic Content Item Variants summary: >- Zendesk Get Api V2 Dynamic_content Items Dynamic_content_item_id Variants Dynamic_content_variant_id description: | #### Allowed For * Admins, Agents responses: '200': description: Success response content: application/json: schema: $ref: '#/components/schemas/DynamicContentVariantResponse' examples: default: $ref: '#/components/examples/DynamicContentVariantResponseExample' put: operationId: UpdateDynamicContentVariant tags: - Dynamic Content Item Variants summary: >- Zendesk Put Api V2 Dynamic_content Items Dynamic_content_item_id Variants Dynamic_content_variant_id description: > Updates the specified variant. You don't need to include all the properties. If you just want to update content, for example, then include just that. You can't switch the active state of the default variant of an item. Similarly, you can't switch the default to false if the variant is the default. You must make another variant default instead. #### Allowed For * Admins, Agents responses: '200': description: Success response content: application/json: schema: $ref: '#/components/schemas/DynamicContentVariantResponse' examples: default: $ref: >- #/components/examples/DynamicContentVariantUpdateResponseExample delete: operationId: DeleteDynamicContentVariant tags: - Dynamic Content Item Variants summary: >- Zendesk Delete Api V2 Dynamic_content Items Dynamic_content_item_id Variants Dynamic_content_variant_id description: | #### Allowed For * Admins, Agents responses: '204': description: No Content response /api/v2/dynamic_content/items/{dynamic_content_item_id}/variants/create_many: parameters: - $ref: '#/components/parameters/DynamicContentItemId' post: operationId: CreateManyDynamicContentVariants tags: - Dynamic Content Item Variants summary: >- Zendesk Post Api V2 Dynamic_content Items Dynamic_content_item_id Variants Create_many description: | #### Allowed For * Admins, Agents responses: '201': description: Created response content: application/json: schema: $ref: '#/components/schemas/DynamicContentVariantsResponse' examples: default: $ref: >- #/components/examples/DynamicContentVariantsCreateManyResponseExample /api/v2/dynamic_content/items/{dynamic_content_item_id}/variants/update_many: parameters: - $ref: '#/components/parameters/DynamicContentItemId' put: operationId: UpdateManyDynamicContentVariants tags: - Dynamic Content Item Variants summary: >- Zendesk Put Api V2 Dynamic_content Items Dynamic_content_item_id Variants Update_many description: > Updates one or more variants. See [Update Variant](/api-reference/ticketing/ticket-management/dynamic_content_item_variants/#update-variant). You must specify the variants by id in the body. To get the variant ids, see [List Variants](/api-reference/ticketing/ticket-management/dynamic_content_item_variants/#list-variants). #### Allowed For * Admins, Agents responses: '200': description: Success response content: application/json: schema: $ref: '#/components/schemas/DynamicContentVariantsResponse' examples: default: $ref: >- #/components/examples/DynamicContentVariantsUpdateManyResponseExample /api/v2/dynamic_content/items/show_many: get: operationId: ShowManyDynamicContents tags: - Dynamic Content summary: Zendesk Get Api V2 Dynamic_content Items Show_many description: | #### Stability * Development #### Allowed For * Admins, Agents parameters: - name: identifiers in: query description: Identifiers for the dynamic contents schema: type: string example: item1,item2 responses: '200': description: Success response content: application/json: schema: $ref: '#/components/schemas/DynamicContentsResponse' examples: default: $ref: '#/components/examples/DynamicContentsResponseExample' components: schemas: DynamicContentsResponse: type: object properties: items: type: array items: $ref: '#/components/schemas/DynamicContentObject' DynamicContentResponse: type: object properties: item: $ref: '#/components/schemas/DynamicContentObject' DynamicContentVariantsResponse: type: object properties: variants: type: array items: $ref: '#/components/schemas/DynamicContentVariantObject' DynamicContentVariantResponse: type: object properties: variant: $ref: '#/components/schemas/DynamicContentVariantObject' tags: - name: Dynamic Content - name: Dynamic Content Item Variants