Get one template
GET/templates/:templateId
Get one template with the given id
Requestβ
Path Parameters
Query Parameters
Responsesβ
- 200
- 400
- 403
- 423
- 500
OK
- */*
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Widget editor configuration field linked to the translation locales field in JSON format.
UI CSS script that is associated with this template.
Timestamp of when a record is activated.
Timestamp of when a record is created.
Timestamp of when a record is modified.
Description of template.
UI Html markup text that is associated with this template.
Unique identifier of the given template.
Boolean value of is custom template.
Name for the given template.
Website id of the studio template.
Template status.
Possible values: [DRAFT
, ACTIVE
, PAUSED
]
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
List of custom data using this goal
Variable name of the Adobe Analytics
Enables the selection of custom data values for targeting conditions by displaying them in a select box rather than a simple text field.
Account Id of the creator of the custom data
Custom code that will be executed
Date and time a record is created
Description of the custom data
Custom data value format
Possible values: [BOOLEAN
, NUMBER
, STRING
]
Variable name of the Google Tag Manager
Unique Id of the custom data.
Indicates whether the custom data is a constant
Indicates whether custom data should be filtered and marked as available for breakdown
Indicates whether this data should be included in Kameleoon machine learning
Indicates whether the 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
]
Date and time a record is modified
Name of the given custom data
System generated code to uniquely identify a website.
This is an optional field needs to specify in request params.
Unique project identifier assigned to the record
Field to store tags that are associated with this record
Name for the tag commander data layer, if it is selected as a transmission method
Name for 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
]
Field to store tags that are associated with this template.
Template CSS script that is associated with this template.
Template HTML markup that is associated with this template.
Template JavaScript code that is associated with this template.
Type of template.
Possible values: [TEMPLATE
, EDITOR
]
Url associated with this template.
Boolean value to indicate if custom data is being used.
Widget editor code that is associated with this template.
{
"config": "string",
"cssCode": "string",
"dateActivated": "2024-07-29T15:51:28.071Z",
"dateCreated": "2024-07-29T15:51:28.071Z",
"dateModified": "2024-07-29T15:51:28.071Z",
"description": "string",
"htmlCode": "string",
"id": 0,
"isCustomTemplate": true,
"name": "string",
"siteId": 0,
"status": "DRAFT",
"surveyDataConfig": {
"fields": [
{
"elementId": "string",
"id": "string",
"isDeprecated": true,
"name": "string",
"parentId": "string",
"valueType": "BOOLEAN"
}
],
"isCollectData": true,
"methodTypes": [
"KAMELEOON"
],
"requestSettings": {
"headers": [
{
"customData": {
"adobeAnalyticsVariableName": "string",
"advancedProposedValues": "string",
"createdById": 0,
"customEvalCode": "string",
"dateCreated": "2024-07-29T15:51:28.071Z",
"description": "string",
"format": "BOOLEAN",
"gtmVariableName": "string",
"id": 0,
"index": 0,
"isConstant": true,
"isFiltrableVentilable": true,
"isLearnable": true,
"isLocalOnly": true,
"method": "ADOBE_ANALYTICS",
"modificationDate": "2024-07-29T15:51:28.071Z",
"name": "string",
"siteCode": "string",
"siteId": 0,
"tags": "string",
"tcVariableName": "string",
"tealiumVariableName": "string",
"type": "COUNT_LIST"
},
"id": "string",
"name": "string",
"type": "CUSTOM_DATA",
"value": "string"
}
],
"name": "string",
"type": "GET",
"url": "string"
},
"triggerSettings": {
"type": "CLICK",
"value": "string"
}
},
"tags": [
"string"
],
"templateCssCode": "string",
"templateHtmlCode": "string",
"templateJavaScriptCode": "string",
"type": "TEMPLATE",
"url": "string",
"useCustomData": true,
"widgetEditorTemplate": "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"
}
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"
}
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"
}