{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"You can create dynamic content.\n\nRequires the `read_write_dynamic_content` OAuth scope.\n","properties":{"headers":{"type":"object","properties":{"Intercom-Version":{"$ref":"#/definitions/intercom_version","enum":["2.17"]}},"required":[],"additionalProperties":false},"body":{"$ref":"#/definitions/dynamic_content_create_request","examples":[{"name":"Support phone number","content_type":"inline","default_locale":"en","variations":[{"locale":"en","text_content":"+1-555-0100"},{"locale":"fr","text_content":"+33 1 23 45 67 89"}]}]}},"required":["body"],"additionalProperties":false,"definitions":{"intercom_version":{"description":"Intercom API version.</br>If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.","type":"string","enum":["1.0","1.1","1.2","1.3","1.4","2.0","2.1","2.2","2.3","2.4","2.5","2.6","2.7","2.8","2.9","2.10","2.11","2.12","2.13","2.14","2.15","2.16","2.17"],"examples":["2.17"]},"dynamic_content_create_request":{"title":"Create Dynamic Content Request","type":"object","description":"The request payload for creating dynamic content.","required":["name","content_type","default_locale","variations"],"properties":{"name":{"type":"string","description":"The name of the dynamic content. Must be unique in the workspace.","maxLength":255,"examples":["Support phone number"]},"content_type":{"type":"string","description":"Whether the dynamic content is a short inline value (`inline`) or one or more blocks of content (`block`). Can't be changed later.","enum":["inline","block"],"examples":["inline"]},"default_locale":{"type":"string","description":"The locale whose variation is used when there's no variation for the requested locale. `variations` must include a variation for this locale that applies to all brands.","examples":["en"]},"variations":{"type":"array","description":"The variations of the dynamic content, one per locale and optionally per brand. Set `brand_id` on a variation to override the all-brands value for that brand. At least one is required.","minItems":1,"items":{"$ref":"#/definitions/dynamic_content_variation_request"}}}},"dynamic_content_variation_request":{"title":"Dynamic Content Variation Request","type":"object","description":"A variation of a dynamic content. Provide `text_content` for inline dynamic content, or `body` for block dynamic content.","required":["locale"],"properties":{"locale":{"type":"string","description":"The locale of the variation. Each locale can appear once per brand.","examples":["en"]},"brand_id":{"type":["string","null"],"description":"The unique identifier for the brand the variation applies to. Omit for a variation that applies to all brands.","examples":["42"]},"text_content":{"type":"string","description":"The value of an inline variation.","examples":["+1-555-0100"]},"body":{"type":"string","description":"The content of a block variation in HTML.","examples":["<p>You can request a refund within 30 days of purchase.</p>"]},"intentionally_empty":{"type":"boolean","description":"Set to `true` to make the variation show nothing instead of falling back to the default content. Any `text_content` or `body` sent with it is ignored.","default":false,"examples":[false]}}}}},"name":"Create dynamic content","id":"intercom.createdynamiccontent","example":{"body":{"name":"Support phone number","content_type":"inline","default_locale":"en","variations":[{"locale":"en"}]}},"maxRequests":1,"summary":false}}