Create a new template
Create new template with given parameters
- application/json
Request Body required
- config string
Widget editor configuration field linked to the translation locales field in JSON format.
- cssCode string
UI CSS script that is associated with this template.
- description string
Description of template.
- htmlCode string
UI Html markup text that is associated with this template.
- isCustomTemplate boolean
Boolean value of is custom template.
- name string
Name for the given template.
- siteId int64 required
Website id of the studio template.
- status string
Possible values: [
DRAFT
,ACTIVE
,PAUSED
]Template status.
- tags string[]
Field to store tags that are associated with this template.
- templateCssCode string
Template CSS script that is associated with this template.
- templateHtmlCode string
Template HTML markup that is associated with this template.
- templateJavaScriptCode string
Template JavaScript code that is associated with this template.
- type string
Possible values: [
TEMPLATE
,EDITOR
]Type of template.
- url string
Url associated with this template.
- useCustomData boolean
Boolean value to indicate if custom data is being used.
- widgetEditorTemplate string
Widget editor code that is associated with this template.
- 201
- 400
- 403
- 423
- 500
Created
- */*
- Schema
- Example (from schema)
Schema
- config string
Widget editor configuration field linked to the translation locales field in JSON format.
- cssCode string
UI CSS script that is associated with this template.
- dateActivated date-time
Timestamp of when a record is activated.
- dateCreated date-time
Timestamp of when a record is created.
- dateModified date-time
Timestamp of when a record is modified.
- description string
Description of template.
- htmlCode string
UI Html markup text that is associated with this template.
- id int64
Unique identifier of the given template.
- isCustomTemplate boolean
Boolean value of is custom template.
- name string
Name for the given template.
- siteId int64 required
Website id of the studio template.
- status string
Possible values: [
DRAFT
,ACTIVE
,PAUSED
]Template status.
- tags string[]
Field to store tags that are associated with this template.
- templateCssCode string
Template CSS script that is associated with this template.
- templateHtmlCode string
Template HTML markup that is associated with this template.
- templateJavaScriptCode string
Template JavaScript code that is associated with this template.
- type string
Possible values: [
TEMPLATE
,EDITOR
]Type of template.
- url string
Url associated with this template.
- useCustomData boolean
Boolean value to indicate if custom data is being used.
- widgetEditorTemplate string
Widget editor code that is associated with this template.
{
"config": "string",
"cssCode": "string",
"dateActivated": "2024-12-20T15:04:33.682Z",
"dateCreated": "2024-12-20T15:04:33.682Z",
"dateModified": "2024-12-20T15:04:33.682Z",
"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
- code string
- impersonator string
- message string
- name string
- status string
Possible values: [
SUCCESS
,ERROR
] - sub string
- time int64
- timestamp date-time
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-12-20T15:04:33.682Z"
}
Forbidden
- */*
- Schema
- Example (from schema)
Schema
- code string
- impersonator string
- message string
- name string
- status string
Possible values: [
SUCCESS
,ERROR
] - sub string
- time int64
- timestamp date-time
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-12-20T15:04:33.682Z"
}
Locked
- */*
- Schema
- Example (from schema)
Schema
- code string
- impersonator string
- message string
- name string
- status string
Possible values: [
SUCCESS
,ERROR
] - sub string
- time int64
- timestamp date-time
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-12-20T15:04:33.682Z"
}
Internal Server Error
- */*
- Schema
- Example (from schema)
Schema
- code string
- impersonator string
- message string
- name string
- status string
Possible values: [
SUCCESS
,ERROR
] - sub string
- time int64
- timestamp date-time
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-12-20T15:04:33.682Z"
}