BIND
PATCH/templates/{templateId}

Update a template

Changes a template's content and variables, and an SMS template's name. Fields you leave out keep their value. SMS: a template Bind reviews changes only as a DRAFT or REJECTED (409 TEMPLATE_NOT_EDITABLE; create a new one instead). Where your brand publishes its own templates, anything but PENDING changes, and a LIVE template stays LIVE: if campaigns still send it, 409 TEMPLATE_IN_USE names them unless you send confirmActiveCampaigns: true, and their remaining messages carry the new text. WhatsApp: only components and variables change, never the name. Once Meta holds the template the change goes to Meta and the template is PENDING again. Scope portal:write.

Path parameters

  • templateIdstring (uuid)required

    The template's UUID, the same the Channels API takes as template.id.

    Example: "7c1e9a52-4b0d-4f3e-9a61-2d8f5c0b3e17"

Headers

  • If-Matchstring

    The ETag from your last GET. The change is refused with 412 if the resource changed since.

    Example: "\"9b2f4c1e7a3d5b8f0c6e2a4d1f7b3c9e\""

Request body

application/merge-patch+json
  • namestring· min 1 chars· max 100 chars

    SMS only; a WhatsApp template keeps its name.

  • contentstring· max 2000 chars

    SMS only.

  • messageTypestring

    SMS only.

    Values:MARKETINGTRANSACTIONAL
  • componentsarray of object· max 10 items

    WhatsApp only, the whole set, within the subset TemplateCreate.components describes.

  • variablesarray of object· max 40 items

    The placeholders' fallbacks, sent to a contact without a value. Sent, the list replaces the template's. SMS: a contact field's (first_name, ...) fallback is written into its placeholders; any other name is the template's own variable and needs a type (short_text, name, number, amount, date, time, reference, otp). WhatsApp: each fallback is that parameter's.

  • confirmActiveCampaignsboolean

    Change a LIVE SMS template even though campaigns still send it; their remaining messages carry the new text.

Responses

Ready to send your first message?

We set up your account, sender profiles and API key with you, and help you through the first integration.

Bind console showing an SMS profile going live