Simulate widget
POST/templates/simulate/:widgetId
Generate simulation for widget and redirect to simulation page
Requestβ
Path Parameters
- application/json
Body
required
Array [
]
Array [
]
widgetTemplateInput
object
required
Widget template fields.
Possible values: [INPAGE
, ABOVE
]
surveyDataConfig
object
Configuration settings for survey data collection.
fields
object[]
required
Possible values: [BOOLEAN
, NUMBER
, STRING
, STRING_ARRAY
, DATE
, TIME
]
Possible values: [KAMELEOON
, HTTP_REQUEST
, CUSTOM_JS_CODE
]
requestSettings
object
headers
object[]
customData
object
Variable name of the Adobe Analytics
Enables to set values for targeting conditions in the form of a JS table
Custom code that will be executed
Description of the custom data
Custom data value format
Possible values: [BOOLEAN
, NUMBER
, STRING
]
Variable name of the Google Tag Manager
Indicates if the custom data is a constant
Indicates if custom data should be filtered and marked as available for breakdown
Indicates if this data should be included in Kameleoon machine learning
Indicates if the custom data is only stored on the user's device.
Method through which a custom data will be transmitted
Possible values: [ADOBE_ANALYTICS
, CLIENT
, CUSTOM_CODE
, GTM
, SDK
, TC
, TEALIUM
]
Name of the custom data
Id of the project this record belongs
Tags that belong to this record
Name of the tag commander data layer, if it is selected as a transmission method
Name of the Tealium, if it is selected as a transmission method
Custom data type. Custom data can be presented as a single value (UNIQUE), or a list of values (LIST), ββor a countable list of values (COUNT_LIST)
Possible values: [COUNT_LIST
, LIST
, UNIQUE
]
Possible values: [CUSTOM_DATA
, CUSTOM_TEXT
, LOCAL_STORAGE
, COOKIES
]
Possible values: [GET
, POST
]
triggerSettings
object
required
Possible values: [CLICK
, CLOSE
, ANSWER
]
Responsesβ
- 200
- 400
- 401
- 403
- 404
- 423
- 500
- 503
OK
- */*
- Schema
Schema
string
Bad Request
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Unauthorized
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Forbidden
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Not Found
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Locked
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Internal Server Error
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Service Unavailable
- */*
- Schema
- Example (from schema)
Schema
object
{}