Delete Message Template
curl --request DELETE \
--url https://sendazi.com/api/v1/message-templates/{uuid}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sendazi.com/api/v1/message-templates/{uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "https://sendazi.com/api/v1/message-templates/{uuid}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://sendazi.com/api/v1/message-templates/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.delete("https://sendazi.com/api/v1/message-templates/{uuid}")
.asString();const url = 'https://sendazi.com/api/v1/message-templates/{uuid}';
const options = {method: 'DELETE'};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://sendazi.com/api/v1/message-templates/{uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Template deleted successfully."
}
{
"success": false,
"message": "Template not found."
}
Message Templates
Delete Message Template
Delete a message template
DELETE
https://sendazi.com/api/v1
/
message-templates
/
{uuid}
Delete Message Template
curl --request DELETE \
--url https://sendazi.com/api/v1/message-templates/{uuid}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sendazi.com/api/v1/message-templates/{uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "https://sendazi.com/api/v1/message-templates/{uuid}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://sendazi.com/api/v1/message-templates/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.delete("https://sendazi.com/api/v1/message-templates/{uuid}")
.asString();const url = 'https://sendazi.com/api/v1/message-templates/{uuid}';
const options = {method: 'DELETE'};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://sendazi.com/api/v1/message-templates/{uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Template deleted successfully."
}
{
"success": false,
"message": "Template not found."
}
The unique identifier (UUID) of the template
{
"success": true,
"message": "Template deleted successfully."
}
{
"success": false,
"message": "Template not found."
}
Was this page helpful?
⌘I
