Templates

Update a template

Partial update. Omitted fields are left alone.

Changing subject, body, from, from_name or reply_to snapshots the previous content into the template's version history and increments version; changing only name, description or email_category does not, because neither is content a send would have rendered.

A from supplied here is verified before anything is written, on the same terms as create.

Requires the templates:write scope — Create, edit, and delete your email templates.

patch/api/v1/templates/{id}

Request

  • Base URL: https://api.sendly.now
  • URL: https://api.sendly.now/api/v1/templates/{id}
  • Auth: one of:
    • HTTP bearer
    • API key in cookie better-auth.session_token
    • OAuth 2 (authorization code, authorization URL https://app.sendly.now/api/auth/oauth2/authorize, token URL https://app.sendly.now/api/auth/oauth2/token, scopes: templates:write)

Path parameters

idstring uuid required

Resource id.

Request body

bodystring
descriptionstring nullable
email_category'TRANSACTIONAL' | 'MARKETING' | 'SELF_MANAGED_UNSUBSCRIBE'
fromstring email
from_namestring nullable
namestring
reply_tostring email nullable
subjectstring

Response

The updated template

bodystring required
created_atstring date-time required
descriptionstring nullable required
email_category'TRANSACTIONAL' | 'MARKETING' | 'SELF_MANAGED_UNSUBSCRIBE' required
fromstring required
from_namestring nullable required
idstring uuid required
namestring required
reply_tostring nullable required
subjectstring required
updated_atstring date-time required
versioninteger required

Changes

No recorded changes to this operation across all 1 revision of this API.