Create or Update Template
Changed onCreate 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}/
Request
- Base URLhttps://management-api.suprsend.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
workspacestring required
Workspace slug.
template_slugstring required
Unique template slug. Used as the identifier for the template.
Request body
Example request
{
"name": "Order Confirmed",
"description": "Sent when an order is placed",
"tags": [
"transactional"
],
"enabled_channels": [
"email",
"sms"
]
}Response
Template created successfully
object required
Changes
- breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response401 - breaking
removed the success response with the status
- warning
the
request property's maxLength was set to128 - info
the request property
became optional - info
added the success response with the status
- info
added the success response with the status
- breaking