WhatsApp Templates
Update a message template
Changed onChanges a WhatsApp template's category, components, or both. Use it while the template is still awaiting approval; an approved template cannot be updated and must be deleted and recreated. This operation edits reusable template content and does not send a message.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Numbers.
Learn more about API scopes.
patch/api/messaging/whatsapp/templates/{id}
Request
- Base URLhttps://{Your_Space_Name}.signalwire.com
- URLhttps://{Your_Space_Name}.signalwire.com/api/messaging/whatsapp/templates/{id}
- AuthHTTP basic
Path parameters
idstring required
The template ID — either the SignalWire ID (a UUID) or the Meta template ID (a numeric string). Both are accepted.
Request body
Example request
{
"components": [
{
"type": "BODY"
}
]
}Response
The request has succeeded.
Example response
{
"name": "order_update",
"components": [
{
"type": "BODY"
}
],
"language": "en_US",
"template_id": "1164792772433648",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"discarded_at": "2024-01-15T10:30:00Z"
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking
Some revisions have not been checked yet.