Skip to content

Update dynamic content

Request

You can update existing dynamic content. Only the fields you provide are changed. Requires the read_write_dynamic_content scope.

Security
bearerAuth
Path
idstringrequired

The unique identifier for the dynamic content.

Example:123
Headers
Intercom-Versionstring(intercom_version)

Intercom API version.
By default, it's equal to the version set in the app package.

Default:"Preview"
Enum:"1.0""1.1""1.2""1.3""1.4""2.0""2.1""2.2""2.3""2.4"
Example:Preview
Bodyapplication/jsonrequired
namestring, <= 255 characters

The name of the dynamic content. Must be unique in the workspace. Renaming doesn't change the key.

Example:"Support phone number"
default_localestring

The locale whose variation is used when there's no variation for the requested locale. The dynamic content must have a variation for this locale that applies to all brands.

Example:"en"
variationsArray of objects, non-empty(Dynamic Content Variation Request)

The full set of variations. Existing variations that aren't included are deleted.

curl -i -X PUT \
  https://api.intercom.io/dynamic_contents/123 \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Intercom-Version: Preview' \
  -d '{
    "variations": [
      {
        "locale": "en",
        "text_content": "+1-555-0199"
      },
      {
        "locale": "fr",
        "text_content": "+33 1 23 45 67 89"
      }
    ]
  }'

Responses

Dynamic content updated

Bodyapplication/json
typestring

String representing the object's type. Always has the value dynamic_content.

Example:"dynamic_content"
idstring

The unique identifier for the dynamic content.

Example:"123"
namestring

The name of the dynamic content.

Example:"Support phone number"
keystring

The identifier that articles use to reference the dynamic content. Derived from the name when the dynamic content is created, and never changes.

Example:"support-phone-number"
content_typestring

Whether the dynamic content is a short inline value (inline) or one or more blocks of content (block).

Enum:"inline""block"
Example:"inline"
default_localestring

The locale whose variation is used when there's no variation for the requested locale.

Example:"en"
variationsArray of objects(Dynamic Content Variation)

The variations of the dynamic content.

created_atinteger, (date-time)

The time the dynamic content was created as a Unix timestamp.

Example:1663597223
updated_atinteger, (date-time)

The time the dynamic content was last updated as a Unix timestamp.

Example:1663597223
Response
{ "type": "dynamic_content", "id": "123", "name": "Support phone number", "key": "support-phone-number", "content_type": "inline", "default_locale": "en", "variations": [ { … }, { … } ], "created_at": 1663597223, "updated_at": 1663597300 }