Update a template
curl --request PUT \
--url https://app.escrybe.com.br/api/whatsapp/v1/templates/put \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"template_id": 123,
"body_text": "<string>",
"header_text": "<string>",
"footer_text": "<string>",
"variable_examples": [
"<string>"
],
"header_media": "<string>"
}
'import requests
url = "https://app.escrybe.com.br/api/whatsapp/v1/templates/put"
payload = {
"template_id": 123,
"body_text": "<string>",
"header_text": "<string>",
"footer_text": "<string>",
"variable_examples": ["<string>"],
"header_media": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
template_id: 123,
body_text: '<string>',
header_text: '<string>',
footer_text: '<string>',
variable_examples: ['<string>'],
header_media: '<string>'
})
};
fetch('https://app.escrybe.com.br/api/whatsapp/v1/templates/put', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.escrybe.com.br/api/whatsapp/v1/templates/put",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'template_id' => 123,
'body_text' => '<string>',
'header_text' => '<string>',
'footer_text' => '<string>',
'variable_examples' => [
'<string>'
],
'header_media' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.escrybe.com.br/api/whatsapp/v1/templates/put"
payload := strings.NewReader("{\n \"template_id\": 123,\n \"body_text\": \"<string>\",\n \"header_text\": \"<string>\",\n \"footer_text\": \"<string>\",\n \"variable_examples\": [\n \"<string>\"\n ],\n \"header_media\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://app.escrybe.com.br/api/whatsapp/v1/templates/put")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"template_id\": 123,\n \"body_text\": \"<string>\",\n \"header_text\": \"<string>\",\n \"footer_text\": \"<string>\",\n \"variable_examples\": [\n \"<string>\"\n ],\n \"header_media\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.escrybe.com.br/api/whatsapp/v1/templates/put")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"template_id\": 123,\n \"body_text\": \"<string>\",\n \"header_text\": \"<string>\",\n \"footer_text\": \"<string>\",\n \"variable_examples\": [\n \"<string>\"\n ],\n \"header_media\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"status": "success",
"message": "<string>",
"data": {
"template_id": 123,
"name": "<string>",
"new_status": "pending"
},
"request_id": "<string>"
}{
"code": 400,
"status": "error",
"message": "Campos obrigatórios não preenchidos",
"data": null
}{
"code": 401,
"status": "error",
"message": "Não autorizado — credenciais inválidas",
"data": null
}{
"code": 200,
"status": "success",
"message": "<string>",
"data": "<unknown>",
"request_id": "<string>"
}{
"code": 200,
"status": "success",
"message": "<string>",
"data": "<unknown>",
"request_id": "<string>"
}WhatsApp Templates
Update a template
PUT
/
api
/
whatsapp
/
v1
/
templates
/
put
Update a template
curl --request PUT \
--url https://app.escrybe.com.br/api/whatsapp/v1/templates/put \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"template_id": 123,
"body_text": "<string>",
"header_text": "<string>",
"footer_text": "<string>",
"variable_examples": [
"<string>"
],
"header_media": "<string>"
}
'import requests
url = "https://app.escrybe.com.br/api/whatsapp/v1/templates/put"
payload = {
"template_id": 123,
"body_text": "<string>",
"header_text": "<string>",
"footer_text": "<string>",
"variable_examples": ["<string>"],
"header_media": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
template_id: 123,
body_text: '<string>',
header_text: '<string>',
footer_text: '<string>',
variable_examples: ['<string>'],
header_media: '<string>'
})
};
fetch('https://app.escrybe.com.br/api/whatsapp/v1/templates/put', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.escrybe.com.br/api/whatsapp/v1/templates/put",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'template_id' => 123,
'body_text' => '<string>',
'header_text' => '<string>',
'footer_text' => '<string>',
'variable_examples' => [
'<string>'
],
'header_media' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.escrybe.com.br/api/whatsapp/v1/templates/put"
payload := strings.NewReader("{\n \"template_id\": 123,\n \"body_text\": \"<string>\",\n \"header_text\": \"<string>\",\n \"footer_text\": \"<string>\",\n \"variable_examples\": [\n \"<string>\"\n ],\n \"header_media\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://app.escrybe.com.br/api/whatsapp/v1/templates/put")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"template_id\": 123,\n \"body_text\": \"<string>\",\n \"header_text\": \"<string>\",\n \"footer_text\": \"<string>\",\n \"variable_examples\": [\n \"<string>\"\n ],\n \"header_media\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.escrybe.com.br/api/whatsapp/v1/templates/put")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"template_id\": 123,\n \"body_text\": \"<string>\",\n \"header_text\": \"<string>\",\n \"footer_text\": \"<string>\",\n \"variable_examples\": [\n \"<string>\"\n ],\n \"header_media\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"status": "success",
"message": "<string>",
"data": {
"template_id": 123,
"name": "<string>",
"new_status": "pending"
},
"request_id": "<string>"
}{
"code": 400,
"status": "error",
"message": "Campos obrigatórios não preenchidos",
"data": null
}{
"code": 401,
"status": "error",
"message": "Não autorizado — credenciais inválidas",
"data": null
}{
"code": 200,
"status": "success",
"message": "<string>",
"data": "<unknown>",
"request_id": "<string>"
}{
"code": 200,
"status": "success",
"message": "<string>",
"data": "<unknown>",
"request_id": "<string>"
}Authorizations
HTTP Basic where username is your account e-mail and password is your security token.
Body
application/jsonmultipart/form-data
⌘I