curl --request PATCH \
--url https://api.kameleoon.com/templates/{templateId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"config": "<string>",
"description": "<string>",
"isCustomTemplate": true,
"name": "<string>",
"siteId": 123,
"status": "DRAFT",
"tags": [
"<string>"
],
"templateCssCode": "<string>",
"templateHtmlCode": "<string>",
"templateJavaScriptCode": "<string>",
"themeId": 123,
"type": "TEMPLATE",
"uiCssCode": "<string>",
"uiHtmlCode": "<string>",
"url": "<string>",
"useCustomData": true,
"widgetEditorTemplate": "<string>"
}
'{
"siteId": 123,
"config": "<string>",
"cssCode": "<string>",
"dateActivated": "2023-11-07T05:31:56Z",
"dateCreated": "2023-11-07T05:31:56Z",
"dateModified": "2023-11-07T05:31:56Z",
"description": "<string>",
"htmlCode": "<string>",
"id": 123,
"isCustomTemplate": true,
"name": "<string>",
"status": "DRAFT",
"tags": [
"<string>"
],
"templateCssCode": "<string>",
"templateHtmlCode": "<string>",
"templateJavaScriptCode": "<string>",
"themeId": 123,
"type": "TEMPLATE",
"url": "<string>",
"useCustomData": true,
"widgetEditorTemplate": "<string>"
}Update several fields of template
curl --request PATCH \
--url https://api.kameleoon.com/templates/{templateId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"config": "<string>",
"description": "<string>",
"isCustomTemplate": true,
"name": "<string>",
"siteId": 123,
"status": "DRAFT",
"tags": [
"<string>"
],
"templateCssCode": "<string>",
"templateHtmlCode": "<string>",
"templateJavaScriptCode": "<string>",
"themeId": 123,
"type": "TEMPLATE",
"uiCssCode": "<string>",
"uiHtmlCode": "<string>",
"url": "<string>",
"useCustomData": true,
"widgetEditorTemplate": "<string>"
}
'{
"siteId": 123,
"config": "<string>",
"cssCode": "<string>",
"dateActivated": "2023-11-07T05:31:56Z",
"dateCreated": "2023-11-07T05:31:56Z",
"dateModified": "2023-11-07T05:31:56Z",
"description": "<string>",
"htmlCode": "<string>",
"id": 123,
"isCustomTemplate": true,
"name": "<string>",
"status": "DRAFT",
"tags": [
"<string>"
],
"templateCssCode": "<string>",
"templateHtmlCode": "<string>",
"templateJavaScriptCode": "<string>",
"themeId": 123,
"type": "TEMPLATE",
"url": "<string>",
"useCustomData": true,
"widgetEditorTemplate": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Id of the template object
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
DRAFT, ACTIVE, PAUSED Configuration settings for survey data collection.
Show child attributes
Tags that belong to this template
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
Id of the theme linked to the widget.
Type of template
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
OK
Web Id of the studio template.
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.
Template status.
DRAFT, ACTIVE, PAUSED Tags that belong to this template.
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.
Id of the theme linked to the widget.
Type of template.
TEMPLATE, EDITOR Url associated with this template.
Indicates if custom data is being used.
Widget editor code that belongs to this template.
Was this page helpful?