Skip to main content

Create a new template

POST 

/templates

Create a new template with given parameters

Request

Body

required

    config string

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

    cssCode string

    CSS that belongs to this template.

    description string

    Description of the template.

    htmlCode string

    UI text that belongs to this template.

    isCustomTemplate boolean

    Indicates if this is a custom template.

    name string

    Name of the template.

    siteId int64required

    Web Id of the studio template.

    status string

    Template status.

    Possible values: [DRAFT, ACTIVE, PAUSED]

    tags string[]

    Tags that belong to this template.

    templateCssCode string

    CSS code that belongs to this template.

    templateHtmlCode string

    HTML code that belongs to this template.

    templateJavaScriptCode string

    JavaScript code that belongs to this template.

    type string

    Type of template.

    Possible values: [TEMPLATE, EDITOR]

    url string

    Url associated with this template.

    useCustomData boolean

    Indicates if custom data is being used.

    widgetEditorTemplate string

    Widget editor code that belongs to this template.

Responses

Created

Schema

    config string

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

    cssCode string

    CSS that belongs to this template.

    dateActivated date-time

    Date when the widget was activated.

    dateCreated date-time

    Date when this widget was created

    dateModified date-time

    Date when this widget was modified

    description string

    Description of the template.

    htmlCode string

    UI text that belongs to this template.

    id int64

    Unique Id of the template

    isCustomTemplate boolean

    Indicates if this is a custom template.

    name string

    Name of the template.

    siteId int64required

    Web Id of the studio template.

    status string

    Template status.

    Possible values: [DRAFT, ACTIVE, PAUSED]

    tags string[]

    Tags that belong to this template.

    templateCssCode string

    CSS code that belongs to this template.

    templateHtmlCode string

    HTML code that belongs to this template.

    templateJavaScriptCode string

    JavaScript code that belongs to this template.

    type string

    Type of template.

    Possible values: [TEMPLATE, EDITOR]

    url string

    Url associated with this template.

    useCustomData boolean

    Indicates if custom data is being used.

    widgetEditorTemplate string

    Widget editor code that belongs to this template.

Loading...