v1

latestOpenAPI 3.0.32026-07-22177397578.0 KB
Widget

Partially update template

Update several fields of template

patch/templates/{templateId}

Path parameters

templateIdinteger required

The Id of the template object

Request body

configstring

The widget editor configuration field is connected to the translation locales field in JSON format

descriptionstring

Description of the template

isCustomTemplateboolean

Iindicates if a custom template is being used

namestring

Name of the template

siteIdinteger

Site Id of the project this widget belongs to

status'DRAFT' | 'ACTIVE' | 'PAUSED'

Template status

tagsstring[]

Tags that belong to this template

templateCssCodestring

CSS code that belongs to this template

templateHtmlCodestring

HTML code that belongs to this template

templateJavaScriptCodestring

JavaScript code that belongs to this template

themeIdinteger

Id of the theme linked to the widget.

type'TEMPLATE' | 'EDITOR' | 'PBX'

Type of template

uiCssCodestring

UI CSS code that belongs to this template

uiHtmlCodestring

UI HTML code belongs to this template

urlstring

Url belonging to this template

useCustomDataboolean

Indicates if custom data is being used

widgetEditorTemplatestring

Widget editor code that belongs to this template

Response

OK