Skip to main content
PUT
Update template

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
name
string

Template display name shown in the template picker.

template
string

Template body with {{firstName}}-style placeholders resolved at send time.

type
string

Template kind: sms, email, campaign, script, automation.

category
string

Grouping label for filtering; required unless type === "automation".

Response

Template updated

success
enum<boolean>
required
Available options:
true
data
object
required

Mongoose Template document. category is omitted when type === "automation".

Example: