Skip to content
Reference/Templates/Edit Template

Edit Template

PUThttps://public.leadpattern.com/template/:name
Plan: templatesWhatsApp Connectedapplication/json60 req/min

Edit an APPROVED template's components. Meta re-reviews the template after an edit. Limited to 1 edit per 24 hours and 10 per month; AUTHENTICATION templates cannot be edited here.

Headers

1 field
Authorizationstring
required
Your API key. Sent raw (e.g. 'lp_...'). No Bearer prefix required.

Path Parameters

1 field
namestring
required
Template name. Must be APPROVED and not AUTHENTICATION.

Body Parameters

2 fields
languagestring
optional
Defaults to the template's current language.
componentsobject
required
headerobject
optional
bodyobject
required
footerobject
optional
buttonsarray
optional
Passed through to Meta verbatim.

Responses

JSON Response
{
  "type": "success",
  "data": {
    "success": true
  }
}

Sample Request Body

{
  "language": "en",
  "components": {
    "header": {
      "format": "TEXT",
      "text": "Order {{order_id}}"
    },
    "body": {
      "text": "Hi {{name}}, your order has shipped."
    },
    "footer": {
      "text": "Reply STOP to opt out"
    }
  }
}