Delete template
Description
Deletes a message template.
Request URL
Method: POST
https://example.com/api/v1.1/templates/delete
Request parameters
Parameter | Type | Example | Required | Description |
---|---|---|---|---|
token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
id | int | 1 | Yes | Template ID |
format | string | "json" | No | Response data format By default– json |
Request example
- JSON
- XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 1
}
<xml>
<token>97</token>
<id>1</id>
</xml>
Response example
- JSON
- XML
{
"data": 97,
"error": 0,
"error_text": "Successful operation"
}
<xml>
<data>97</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>
Response parameters
Parameter | Type | Description |
---|---|---|
data | int | Deleted template ID |
error | int | Error code |
error_text | string | Error text |