Updates a message template by its id.
A body that changes category or components must leave the merged template coherent:
AUTHENTICATION and its OTP button go together. Switching to or from AUTHENTICATION
therefore sends category and components in the same request; otherwise the API answers
400 AUTHENTICATION_COMPONENTS_MISMATCH before calling Meta.
A DRAFT or Error template is edited locally, without Meta. Optimistic lock (DEP-1): send
expectedUpdatedAt with the ISO 8601 updatedAt you read. If the stored version is a
different instant, or another write wins while this one is saved, the API answers 409
TEMPLATE_CHANGED and saves nothing. Without it, the local edit is saved unlocked. In any
other status expectedUpdatedAt is ignored and never sent to Meta.
The local edit of a DRAFT or Error template also takes waba: the template goes to the WABA
the form chose, as long as it belongs to the retailer. The submit sends it through that WABA.
A template that already has a metaId keeps its WABA: another one answers 409 WABA_LINKED_TO_META.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||