Templates

Edit template

post/{Version}/{TEMPLATE_ID}

Request

  • Base URL
    https://graph.facebook.com
  • URL
    https://graph.facebook.com/{Version}/{TEMPLATE_ID}
  • Auth
    HTTP bearer

Request body

categorystring
languagestring
namestring

Example request

{
  "category": "MARKETING",
  "components": [
    {
      "format": "TEXT",
      "text": "Fall Sale",
      "type": "HEADER"
    },
    {
      "example": {
        "body_text": [
          [
            "Mark",
            "FALL25"
          ]
        ]
      },
      "text": "Hi {{1}}, our Fall Sale is on! Use promo code {{2}} Get an extra 25% off every order above $350!",
      "type": "BODY"
    },
    {
      "text": "Not interested in any of our sales? Tap Stop Promotions",
      "type": "FOOTER"
    },
    {
      "buttons": [
        {
          "text": "Stop promotions",
          "type": "QUICK_REPLY"
        }
      ],
      "type": "BUTTONS"
    }
  ],
  "language": "en_US",
  "name": "2023_april_promo"
}

Response

Example response

successboolean

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 5 revisions of this API.