Edit templates

The method allows editing templates in a bunch.

Limitations
The method is available with administrator rights.

The waba type template can only be edited in draft status.

Data type header on success
Content-Type: application/hal+json

Data type header on error
Content-Type: application/problem+json

Response parameters

The method returns an array of templates that have been modified.

ParameterData TypeDescription
idintTemplate ID
account_idintID of the account the template belongs to
namestringTemplate name
contentstringTemplate body (the message that is sent to the user)
is_editableboolIt defines whether users can edit the template via Kommo interface.
typestringTemplate type
buttonsarrayArray of button objects
buttons[]objA button object
buttons[][type]stringButton type. Available options are inline (plain text button) and url (link button)
buttons[][text]stringText on the button
buttons[][url]stringURL of the button of the url type
attachmentobject|nullObject of the file added to the template
attachment[id]stringUUID of the file attached to the template
attachment[name]stringFile name (it will be passed to a messenger)
attachment[type]stringType of the file (picture, file, document, video)
attachment[is_external]boolIndicator that the file is from a file service. For all templates added from spring 2022 returns true.
created_atintIndicates when the template was added in Unix Timestamp
updated_atintIndicates when the template was updated last time in Unix Timestamp
external_idstringExternal template ID. Template ID in your system.
waba_footerstringWhatsapp template footer
waba_categorystringWhatsApp template category. The following categories are available: UTILITY/AUTHENTICATION/MARKETING
waba_languagestringLanguage of the Whatsapp template.
waba_examplesobjExamples of replacing WhatsApp template markup elements. Example "waba_examples":{"{{lead.name}}":"qwerty"}
waba_headerstringWhatsApp template header with a limit of up to 60 characters.
waba_header_typestringWhatsApp template header type. Available options: text (WhatsApp template with a header), media (WhatsApp template with a media header, there must be a file attached).
Language
Credentials
OAuth2
URL
Click Try It! to start a request and see the response here!