POST

WhatsappTemplates.Update

Alias of WhatsappTemplates.Edit. Update an existing WhatsApp template by sending id plus the fields to change.

Permissions

  • User must be logged in with a valid bearer token.
  • Returned or changed records are limited by the user permissions, team access, folder access, and account settings.

Action

Updates a WhatsApp template row for this organization only.

Push Service

Pushes whatsapptemplates.updated to the current user/owner so connected settings UIs can refresh the template list.

Automation

No automation is run for this function.

Special Instructions

  • Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
  • Send parameters as POST body fields exactly as documented.
  • Send date/time values in UTC Y-m-d H:i:s format when a date or datetime field is used.

Required Parameters

NameTypeSampleExplanation
id
post
int12Template id from WhatsappTemplates.List.

Optional Parameters

NameTypeSampleWhat it gives
template_id
post
int12Alias of id.
name
post
stringwelcome_customer_v2Update the template name.
language
post
stringenUpdate the template language code.
message
post
stringHello {{1}}Update the template text.
dynamic_variables
post
json array["name","phone"]Replace the variable mapping for {{1}}, {{2}}, etc.
namespace
post
stringproject_or_namespaceUpdate provider namespace/project id.
bird_template_version
post
stringv2Update Bird template version.
media_url
post
urlhttps://files.biz1.co.il/file.pdfUpdate the existing media URL.
button_url_variables
post
json array["document_link"]Update dynamic variables used in template button URLs.
approved
post
int1Update provider approval status.
show_status
post
int1Show or hide the template.
templates_for_customer
post
int1Allow or block use for customer communication.
use_to_send_documents
post
int1Allow or block use for document sending.
documents_order
post
int1Allow or block purchase/order documents.
documents_tax_invoices
post
int1Allow or block tax invoices.
documents_reciept
post
int1Allow or block receipts.
documents_detail_order
post
int1Allow or block detail orders.
documents_newspaper_order
post
int1Allow or block newspaper orders.
documents_credit_invoices
post
int1Allow or block credit invoices.
documents_proforma_invoices
post
int1Allow or block proforma invoices.
documents_delivery
post
int1Allow or block delivery documents.
documents_receipts_tax_invoices
post
int1Allow or block receipt tax invoices.
documents_gr_ir
post
int1Allow or block GR/IR invoices.
documents_quote
post
int1Allow or block quotes/proposals.
documents_donation_receipt
post
int1Allow or block donation receipts.
dynamic_content
post
int0Enable or disable dynamic content handling.
provider
post
stringbirdUpdate WhatsApp provider. Alias of whatsApp_provider.

Authentication

Send the bearer token returned by Login in the request header.

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/WhatsappTemplates.Update",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "id": "12",
        "message": "Hello {{1}}",
        "dynamic_variables": "[\"name\"]"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/WhatsappTemplates.Update",
    "url_domain": "https:\/\/{domain}\/app\/WhatsappTemplates.Update"
}

Endpoint

POST /app/WhatsappTemplates.Update
POST https://{user}.bull36.com/app/WhatsappTemplates.Update
POST https://{domain}/app/WhatsappTemplates.Update

Sample Output

{
    "success": 1,
    "id": 12,
    "message": "Record updated successfully.",
    "automation_event": null,
    "socket_event": "whatsapptemplates.updated"
}

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams({ id: '12', message: 'Hello {{1}}', dynamic_variables: JSON.stringify(['name']) });
const res = await fetch('/app/WhatsappTemplates.Update', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
const data = await res.json();
console.log(data);

Error Example

{
    "success": "0",
    "message": "Missing required parameter: id"
}