إنتقل إلى المحتوى الرئيسي

Edit a WhatsApp template

PUT 

/v1/agents/:agentId/connections/:connectionId/whatsapp-templates/:templateId

x-scope: "whatsapp_templates:write"
x-rate-limit-per-minute: 10

Replaces the template's content, as Meta's edit does: send all of it, as for createWhatsAppTemplate, with the same rules. The name and language never change. Leave category out to keep it; Meta lets only a rejected or paused template change category. A media header sent without media_url keeps its current sample; one whose format changes needs media_url (422 template_rejected without it). A change Meta wouldn't take, such as an approved template's category or a switch between numbered and named variables, is 422 template_rejected before it reaches Meta. Only an approved, rejected or paused template can be edited (409 template_status_not_allowed), and Meta allows an approved one an edit a day and ten a month (409 template_edit_limit_reached). Content that equals what Meta holds isn't sent and spends no edit, except that an authentication template, message_send_ttl_seconds or a new media_url always counts as a change, since Meta's list doesn't show them to compare. Meta reviews every change: follow it with getWhatsAppTemplate. A template a broadcast is sending right now is 409 template_in_use_by_broadcast. It finds templates among the first 100 the list reads.

Request​

Responses​

The template as Meta now holds it, usually pending while Meta reviews the change.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.