Passa al contenuto principale

PATCH /templates/:uuid

Updates an existing template.

Required Parameters

ParameterTypeDescription
uuidstringThe identifier of the template

Optional Parameters

ParameterTypeDescription
titlestringThe new title that will be given to the template

Example Request

curl -X PATCH "https://api.callbell.eu/v1/templates/414a6d692bd645ed803f2e7ce360d4c8" \
-H "Authorization: Bearer test_gshuPaZoeEG6ovbc8M79w0QyM" \
-H "Content-Type: application/json" \
-d '{"title": New title"}'

Response

ParameterTypeDescription
templateTemplate[]The object representing the Whatsapp template message.

Example Response

response.json
{
"templates": {
"uuid": "ad42a09715814e6483b1c5debd6a2dbc",
"title": "New title",
"templateType": "text",
"text": "Message text",
"createdAt": "2020-11-13T21:08:53Z"
}
}