Skip to main content
PATCH
/
api
/
v1
/
accounts
/
{account_id}
/
whatsapp_templates
/
{id}
Update WhatsApp template
curl --request PATCH \
  --url https://connect.voxys.ai/api/v1/accounts/{account_id}/whatsapp_templates/{id} \
  --header 'Content-Type: application/json' \
  --header 'api_access_token: <api-key>' \
  --data '
{
  "name": "<string>",
  "language": "en_US",
  "whatsapp_channel_id": 123,
  "components": [
    {
      "text": "<string>",
      "buttons": [
        {
          "text": "<string>",
          "url": "<string>",
          "phone_number": "<string>"
        }
      ],
      "cards": [
        {
          "components": "<array>"
        }
      ]
    }
  ],
  "variable_mappings": {}
}
'
{
  "id": 123,
  "name": "<string>",
  "language": "en_US",
  "whatsapp_channel_id": 123,
  "components": [
    {
      "text": "<string>",
      "buttons": [
        {
          "text": "<string>",
          "url": "<string>",
          "phone_number": "<string>"
        }
      ],
      "cards": [
        {
          "components": "<array>"
        }
      ]
    }
  ],
  "variable_mappings": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://developers.voxys.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

api_access_token
string
header
required

All API requests must include the api_access_token header with a valid agent or administrator token.

Body

application/json
name
string
required
category
enum<string>
required
Available options:
MARKETING,
UTILITY,
AUTHENTICATION
language
string
required
Example:

"en_US"

whatsapp_channel_id
integer
required
parameter_format
enum<string>

Variable format style for body placeholders

Available options:
named,
positional
components
object[]
variable_mappings
object

Map of variable names to contact attribute paths

Response

Template updated

id
integer
name
string
category
enum<string>
Available options:
MARKETING,
UTILITY,
AUTHENTICATION
language
string
Example:

"en_US"

status
enum<string>
Available options:
draft,
pending,
approved,
rejected,
paused
whatsapp_channel_id
integer
parameter_format
enum<string>
Available options:
named,
positional
components
object[]
variable_mappings
object
created_at
string<date-time>
updated_at
string<date-time>