v2

latestOpenAPI 3.1.12026-07-2613060964.2 KB

Create or Update Template

Create a new template or update an existing one. If the template slug already exists, the template metadata is updated. Changes are saved to the draft version.

post/v2/{workspace}/template/{template_slug}/

Path parameters

workspacestring required

Workspace slug.

template_slugstring required

Unique template slug. Used as the identifier for the template.

Request body

namestring required

Template display name.

descriptionstring

Optional description for the template.

tagsstring[]

Tags for organising templates.

enabled_channelsstring[]

Channels to enable for this template.

Example request

{
  "name": "Order Confirmed",
  "description": "Sent when an order is placed",
  "tags": [
    "transactional"
  ],
  "enabled_channels": [
    "email",
    "sms"
  ]
}

Response

Template created or updated successfully

object required