Request Body Parameters
Specifies the message template id.
- Edit the template’s components.
- Edit the template’s category.
- Create a new template.
SampleRequestforEditingComponents.json
curl --request POST \
--url https://one.telepie.com/v3/{message_template_id} \
--header 'apikey: <api-key>'This API is used to edit the template.
curl --request POST \
--url https://one.telepie.com/v3/{message_template_id} \
--header 'apikey: <api-key>'{
"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"
}
Was this page helpful?