templates

Update Template

Update a template.

All fields are optional. Only provided fields will be updated.

Default Template Handling:

  • When setting is_default to true, any existing default template for that channel will be automatically unset
  • Only one template can be default per channel type (EMAIL, SMS, etc.) per workspace
  • The database constraint ensures this rule is enforced

If content is updated, variables will be automatically re-extracted.

put/v1/templates/{template_id}

Request

  • Base URL
    https://api.mentium.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

template_idstring uuid required

Headers

mentium-workspace-idstring nullable

Request body

titlestring nullable
subjectstring nullable
bodystring nullable
template_type'EMAIL' | 'SMS'
is_activeboolean nullable
is_defaultboolean nullable
use_signatureboolean nullable
twilio_languagestring nullable
twilio_approval_categorystring nullable

Response

Successful Response

idstring uuid required
organization_idstring uuid required
workspace_idstring uuid required
titlestring required
subjectstring nullable
bodystring required
template_type'EMAIL' | 'SMS' required
is_activeboolean required
is_defaultboolean
use_signatureboolean
twilio_content_sidstring nullable
twilio_approval_namestring nullable
twilio_approval_statusstring nullable
twilio_approval_categorystring nullable
twilio_approval_errorstring nullable
twilio_languagestring nullable
twilio_variable_orderstring[] nullable
whatsapp_review_warningsstring[]
variablesstring[]
created_atstring date-time required
updated_atstring date-time required
deleted_atstring date-time nullable

Changes

No recorded changes to this operation across all 2 revisions of this API.