Partially update template
PATCH/templates/:templateId
Update several fields of template
Requestβ
Path Parameters
The Id of the template object
- application/json
Body
required
Array [
]
Array [
]
The widget editor configuration field is connected to the translation locales field in JSON format
Description of the template
Iindicates if a custom template is being used
Name of the template
Site Id of the project this widget belongs to
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
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
]
Tags that belong to this template
CSS code that belongs to this template
HTML code that belongs to this template
JavaScript code that belongs to this template
Type of template
Possible values: [TEMPLATE
, EDITOR
]
UI CSS code that belongs to this template
UI HTML code belongs to this template
Url belonging to this template
Indicates if custom data is being used
Widget editor code that belongs to this template
Responsesβ
- 200
- 400
- 401
- 403
- 404
- 423
- 500
OK
- */*
- Schema
- Example (from schema)
Schema
Widget editor configuration field linked to the translation locales field in JSON format.
CSS that belongs to this template.
Date when the widget was activated.
Date when this widget was created
Date when this widget was modified
Description of the template.
UI text that belongs to this template.
Unique Id of the template
Indicates if this is a custom template.
Name of the template.
Web Id of the studio template.
Template status.
Possible values: [DRAFT
, ACTIVE
, PAUSED
]
Tags that belong to this template.
CSS code that belongs to this template.
HTML code that belongs to this template.
JavaScript code that belongs to this template.
Type of template.
Possible values: [TEMPLATE
, EDITOR
]
Url associated with this template.
Indicates if custom data is being used.
Widget editor code that belongs to 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",
"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"
}
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"
}