Skip to main content
POST
Create Canvas Template

Body

application/json
name
string
required
template
string
required
schema
object
required
themeId
string

Response

200 - application/json

The Canvas Template that was created.

id
string
required

The unique identifier of the canvas template

Example:

"123e4567-e89b-12d3-a456-426614174000"

template
string
required

The Handlebars template string

Example:

"<h1>Hello {{name}}!</h1>"

schema
object
required

JSON schema defining the template variables

Example:
createdAt
string<date-time>
required

When the template was created

Example:

"2024-03-20T15:30:00.000Z"

updatedAt
string<date-time>
required

When the template was last updated

Example:

"2024-03-20T15:30:00.000Z"

name
string

The name of the template

Example:

"Welcome Email Template"