Transformer Input
Request body for creating or updating a Personalization Transformer.
- JSON Example
-
1 2{ 3 "name": "MyTransformer", 4 "label": "My Transformer", 5 "description": "Handlebars transformer for web content", 6 "dataConnectors": ["connectorId1"], 7 "channel": "WebApp", 8 "isEnabled": true, 9 "transformerType": "Handlebars", 10 "substitutionDefinitions": { 11 "titleKey": { 12 "label": "Banner title", 13 "configType": "Static", 14 "defaultValue": "Welcome", 15 "overridable": true, 16 "required": false 17 } 18 }, 19 "transformerTypeDetails": { 20 "html": "<div>{{content}}</div>", 21 "disableAutoInjectionOfEngagementAttributes": false, 22 "script": "", 23 "componentName": "" 24 } 25} -
Name Type Description Required or Optional Available Version name String Unique name of the object. Required 66.0 label String Human-readable label or title for the object. Required 66.0 description String Description of the object. Optional 66.0 dataConnectors String[] List of websites or mobile apps this personalization transformer belongs to. This can be id, name, appSourceId, or Data360 StreamingAppDataConnector. Optional 66.0 channel String Specifies whether this ttransformer is for a website or mobile application. Values are: MobileApp, WebApp. Optional 66.0 substitutionDefinitions Substitution Variable Input Object added by substitution name. Each value matches the substitution variable input. Optional 66.0 schemaReference String If the Transformer Substitution Definitions were created referencing a response template, the name of that template. Optional 66.0 isEnabled Boolean Specifies whether this transformer is enabled when delivered to the mobile app or website. Optional 66.0 transformerType String Instruction to the SDK on how the transformer works. Values are: Handlebars, HtmlElementModifier, AgentScript, Component. Optional 66.0 transformerTypeDetails Transformer Type Details Input Data specific to the type of transformer. Optional 66.0