DeleteTemplate#
The method is intended to delete an existing template.
Request#
To delete an existing template, you need to execute a request to:
POST {{apiUrl}}/waInstance{{idInstance}}/deleteTemplate/{{apiTokenInstance}}
For idInstance
, apiTokenInstance
and apiUrl
request parameters, refer to Before you start section.
Request parameters#
Parameter | Type | Mandatory | Description |
---|---|---|---|
elementName | string | Yes | Template name. The element name is unique to the WABAs namespace. It can be retrieved using the GetTemplates method. |
Request body example#
{
"elementName": "ticket_check_url_4245343"
}
Response#
Response parameters#
Parameter | Type | Description |
---|---|---|
status | string | Status of the sent request |
Response body example#
Status code success: 200 OK.
{
"status": "success"
}
DeleteTemplate errors#
For a list of errors common to all methods, refer to Common errors section.
Request examples#
curl --location '{{apiUrl}}/waInstance{{idInstance}}/deleteTemplate/{{apiTokenInstance}}' \
--header 'Content-Type: application/json' \
--data 'elementName=ticket_check_url_4245343'