v1

latestOpenAPI 3.0.32026-07-22177397578.0 KB
Widget

Create a new template

Create a new template with given parameters

post/templates

Request body

configstring

Widget editor configuration field linked to the translation locales field in JSON format.

cssCodestring

CSS that belongs to this template.

dateActivatedstring date-time

Date when the widget was activated.

dateCreatedstring date-time

Date when this widget was created

dateModifiedstring date-time

Date when this widget was modified

descriptionstring

Description of the template.

htmlCodestring

UI text that belongs to this template.

idinteger

Unique Id of the template

isCustomTemplateboolean

Indicates if this is a custom template.

namestring

Name of the template.

siteIdinteger required

Web Id of the studio template.

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.

urlstring

Url associated with this template.

useCustomDataboolean

Indicates if custom data is being used.

widgetEditorTemplatestring

Widget editor code that belongs to this template.

Response

Created