Skip to main content
PATCH
/
v1
/
admin
/
notifications
/
templates
/
{id}
Update notification template
curl --request PATCH \
  --url https://{operatorDomain}/v1/admin/notifications/templates/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "ntpl_01h...",
  "channel": "email",
  "body": "<string>",
  "key": "<string>",
  "subject": "<string>",
  "locale": "<string>"
}
'
{
  "id": "ntpl_01h...",
  "channel": "email",
  "body": "<string>",
  "key": "<string>",
  "subject": "<string>",
  "locale": "<string>"
}

Authorizations

Authorization
string
header
required

Staff session or API token issued by your Voyant app.

Path Parameters

id
string
required

Body

application/json
id
string
required
Example:

"ntpl_01h..."

channel
string
required
Example:

"email"

body
string
required
key
string
subject
string | null
locale
string | null

Response

200 - application/json

Updated template

id
string
required
Example:

"ntpl_01h..."

channel
string
required
Example:

"email"

body
string
required
key
string
subject
string | null
locale
string | null