v1

latestOpenAPI 3.0.12026-07-24116117186.3 KB
Messages

Update base Viber message

The method is used for updating base Viber message.

put/api/v1/messages/viber/{id}

Path parameters

idinteger required

Viber message ID

Request body

idinteger

Message ID.

namestring required

Message name.

languageCodestring

Language code.

tagsstring[]

List of tags.

subscriptionsKeysstring[]

Subscription categories keys, assigned to a message.

languagesstring[]

An array with the language codes for multilingual messages. Available for the GET method only.

fromstring required

Sender name. Must exist in your account.

transactionalboolean

Transactional messages have lower cost, but can contain only text. Content must be agreed with provider for successful sending. Default - false.

textstring required

Message text.

imgstring

Image URL for message. If set, caption and action must be set too.

captionstring

Button text. If set, img and action must be set too.

actionstring

Link assigned to button. If set, img and caption must be set too.

ttlSecinteger

Time to live for message in seconds. Default - 86400 (1 day).

smsFallbackboolean

Enables smsFallback feature: send SMS message instead of Viber, if contact does not have Viber app installed. Default - false.

smsSenderstring

SMS sender name for smsFallback feature.

smsContentstring

SMS text for smsFallback feature.