Edit Message Template
Edit Message Template edits a WhatsApp template's components, or its category or TTL.
- Only
APPROVED,REJECTEDorPAUSEDtemplates can be edited. - An approved template can be edited at most once per 24 hours and 10 times per 30 days.
componentsreplaces the whole existing array.- The name and language can't change.
It calls POST https://graph.facebook.com/v23.0/{templateId}.
The activity has four tabs: Configuration, Auth, Input and Output.
Configuration
| Field | Required | Description |
|---|---|---|
| Name | Optional | Name of the step, should be unique within this workflow. |
| Description | Optional | Describe the purpose or function of this step. |
| Template ID | Optional | Template id from List or Create Message Template. Globally unique, so no WABA ID is needed. Sent as the templateId path parameter; Meta needs it. |
Auth
| Field | Required | Description |
|---|---|---|
| Auth Type | Optional | OAuth 2, the only option. WhatsApp uses the Meta OAuth connection. |
| WhatsApp Connection | Optional | The WhatsApp resource, which needs the whatsapp_business_management scope. |
Input
This activity is built on the REST Client. Map the changes under
body:
| Field | Required | Data Type | Description |
|---|---|---|---|
| Target | Required | Object | The HTTP request. The changes go under body. |
| Body field | Data Type | Description |
|---|---|---|
| components | Array | Replaces the whole existing components array. Same shape as in Create Message Template. |
| category | String | UTILITY, MARKETING or AUTHENTICATION. Can't change once the template is approved. |
| message_send_ttl_seconds | Integer | How long Meta keeps trying to deliver messages sent with this template. |
Output
The activity returns an httpResponse object (status.code, status.message, headers,
body). The response body carries:
| Field | Data Type | Description |
|---|---|---|
| success | Boolean | true when the edit was accepted. |