Skip to main content
PATCH
/
v2
/
{workspace}
/
template
/
{template_slug}
/
commit
Commit Template
curl -X PATCH "https://management-api.suprsend.com/v2/{workspace}/template/{template_slug}/commit/?commit_message=Updated%20copy" \
  --header 'Authorization: ServiceToken <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "$schema": "https://schema.suprsend.com/template/v2/schema.json",
  "slug": "order-confirmed",
  "created_at": "2026-04-07T10:39:28.502737Z",
  "last_triggered_at": null,
  "name": "Order Confirmed",
  "description": "Sent when an order is placed",
  "tags": [
    "transactional"
  ],
  "enabled_channels": [
    "email",
    "sms"
  ],
  "status": "active",
  "version_no": 3,
  "hash": "637edaabc624d09db3793829ea872a3516ed0362ce79ee3875607fc7317381b9",
  "commit_message": "Updated subject line for Q2 campaign",
  "active_at": "2026-04-08T12:00:00.000000Z",
  "updated_at": "2026-04-08T12:00:00.000000Z",
  "updated_by": {
    "name": "Dana Lee",
    "email": "dana.lee@example.com"
  },
  "channels": [
    {
      "channel": "email",
      "is_active": true,
      "variants_count": 2
    },
    {
      "channel": "sms",
      "is_active": true,
      "variants_count": 1
    }
  ]
}

Authorizations

ServiceToken <token>
string
header
required

You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.

Path Parameters

workspace
string
required
template_slug
string
required

Query Parameters

commit_message
string

Description of changes in this version.

Body

application/json

The body is of type object.

Response

Template committed successfully. Returns the updated template detail.

The response is of type object.