Update template
Update template with given id
Path Parameters
- templateId int64 required
The ID of the template object
Example: 100000
- application/json
Request Body required
- description string
Description of template
- editorType string
Possible values: [
BANNER
,EMAIL
,POPIN
,COUNTDOWN
]The editor type of template
- name string
The name for the given template
- siteId int64 required
The website id that an template belongs to
- status string
Possible values: [
DRAFT
,ACTIVE
,PAUSED
]Template status
- tags string[]
This fields stores tags that are associated with this template
- templateCssCode string
templateCssCode that is associated with this template
- templateHtmlCode string
templateHtmlCode that is associated with this template
- templateJavaScriptCode string
templateJavaScriptCode that is associated with this template
- type string
Possible values: [
TEMPLATE
,EDITOR
]The type of template
- uiCssCode string
UiCssCode that is associated with this template
- uiHtmlCode string
UiHtmlCode that is associated with this template
- url string
Url associated with this template
- useCustomData boolean
Boolean value of use custom data
- widgetEditorTemplate string
Widget editor code that is associated with this template
- 200
- 400
- 403
- 500
- 503
OK
- */*
- Schema
- Example (from schema)
Schema
- dateActivated date-time
Date and time a record is activated
- dateCreated date-time
Date and time a record is created
- dateModified date-time
Date and time a record is modified
- description string
Description of template
- editorType string
Possible values: [
BANNER
,EMAIL
,POPIN
,COUNTDOWN
]The editor type of template
- id int64
The unique identifier of the given template
- name string
The name for the given template
- siteId int64 required
The website id that an template belongs to
- status string
Possible values: [
DRAFT
,ACTIVE
,PAUSED
]Template status
- tags string[]
This fields stores tags that are associated with this template
- templateCssCode string
templateCssCode that is associated with this template
- templateHtmlCode string
templateHtmlCode that is associated with this template
- templateJavaScriptCode string
templateJavaScriptCode that is associated with this template
- type string
Possible values: [
TEMPLATE
,EDITOR
]The type of template
- uiCssCode string
UiCssCode that is associated with this template
- uiHtmlCode string
UiHtmlCode that is associated with this template
- url string
Url associated with this template
- useCustomData boolean
Boolean value of use custom data
- widgetEditorTemplate string
Widget editor code that is associated with this template
{
"dateActivated": "2023-06-07T07:34:37.114Z",
"dateCreated": "2023-06-07T07:34:37.114Z",
"dateModified": "2023-06-07T07:34:37.114Z",
"description": "string",
"editorType": "BANNER",
"id": 0,
"name": "string",
"siteId": 0,
"status": "DRAFT",
"tags": [
"string"
],
"templateCssCode": "string",
"templateHtmlCode": "string",
"templateJavaScriptCode": "string",
"type": "TEMPLATE",
"uiCssCode": "string",
"uiHtmlCode": "string",
"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": "2023-06-07T07:34:37.114Z"
}
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": "2023-06-07T07:34:37.114Z"
}
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": "2023-06-07T07:34:37.114Z"
}
Service Unavailable
- */*
- Schema
- Example (from schema)
Schema
- object
{}