Skip to main content
POST
/
v3
/
{message_template_id}
Edit Template
curl --request POST \
  --url https://one.telepie.com/v3/{message_template_id} \
  --header 'apikey: <api-key>'

Request Body Parameters

message_template_id
string
required
Specifies the message template id.
If your template status has been set to REJECTED as part of category validation, you have several options:
  1. Edit the template’s components.
  2. Edit the template’s category.
  3. Create a new template.
SampleRequestforEditingComponents.json
{
  "name": "image_v3_2",
  "category": "MARKETING",
  "components": [
    {
      "type": "header",
      "format": "image",
      "example": {
        "header_handle": [
          "4::aW1hZ2UvanBlZw==:ARaL3BstEF5_AxgQlJNl2Th3WNWDgRR-y6VMbO_bEfKvEgYTrnvZNV9NWLsyZ3V9ubd8q_b-MCiANEpRm7P_14gr6SRWt2-eiyvBrRcRlBgKBA:e:1715326497:1849455295211775:100061459561823:ARaDpX4OJPkE4csE4RM"
        ]
      }
    },
    {
      "type": "body",
      "text": "Hey user,\r\ne ltd.,\r\nTelepie"
    },
    {
      "type": "footer",
      "text": "Use the subscriptions"
    },
    {
      "type": "buttons",
      "buttons": [
        {
          "type": "quick_reply",
          "text": "Button1"
        },
        {
          "type": "quick_reply",
          "text": "Button2"
        },
        {
          "type": "quick_reply",
          "text": "Button3"
        },
        {
          "type": "quick_reply",
          "text": "Button4"
        },
        {
          "type": "quick_reply",
          "text": "Button5"
        },
        {
          "type": "quick_reply",
          "text": "Button6"
        },
        {
          "type": "quick_reply",
          "text": "Button7"
        },
        {
          "type": "url",
          "text": "click",
          "url": "https://farm4.staticflickr.com/3075/3168662394_7d7103de7d_z_d.jpg"
        },
        {
          "type": "phone_number",
          "text": "Call",
          "phone_number": "+919921447944"
        }
      ]
    }
  ],
  "language": "en_US",
  "allow_category_change": true
}
{
  "category": "MARKETING"
}