---
title: "Update translated Viber message"
method: PUT
path: "/api/v1/messages/viber/{id}/{language}"
tags: ["Messages"]
---

# Update translated Viber message

`PUT /api/v1/messages/viber/{id}/{language}`

The method is used for updating language version of base Viber message.

## Path parameters

- `id` integer, required
- `language` string, required

## Request body

- BaseViberMessage
  - `id` integer — Message ID.
  - `name` string, required — Message name.
  - `languageCode` string — Language code.
  - `tags` string[] — List of tags.
  - `subscriptionsKeys` string[] — Subscription categories keys, assigned to a message.
  - `languages` string[] — An array with the language codes for multilingual messages. Available for the GET method only.
  - `from` string, required — Sender name. Must exist in your account.
  - `transactional` boolean — Transactional messages have lower cost, but can contain only text. Content must be agreed with provider for successful sending. Default - false.
  - `text` string, required — Message text.
  - `img` string — Image URL for message. If set, caption and action must be set too.
  - `caption` string — Button text. If set, img and action must be set too.
  - `action` string — Link assigned to button. If set, img and caption must be set too.
  - `ttlSec` integer — Time to live for message in seconds. Default - 86400 (1 day).
  - `smsFallback` boolean — Enables smsFallback feature: send SMS message instead of Viber, if contact does not have Viber app installed. Default - false.
  - `smsSender` string — SMS sender name for smsFallback feature.
  - `smsContent` string — SMS text for smsFallback feature.
  - `carouselItems` ViberCarouselItem[] — Carousel items (2-5 items). When provided, img/action/caption are ignored.
    - `img` string, required — Image URL (png, jpeg). HTTPS recommended.
    - `title` string, required — Short card title
    - `primaryCaption` string, required — Primary button name
    - `primaryAction` string, required — Primary button link
    - `secondaryCaption` string — Secondary button name
    - `secondaryAction` string — Secondary button link
  - `translations` ViberMessage[] — An array with translations to other languages. Available for the GET method only.
    - `id` integer — Message ID.
    - `name` string, required — Message name.
    - `languageCode` string — Language code.
    - `tags` string[] — List of tags.
    - `subscriptionsKeys` string[] — Subscription categories keys, assigned to a message.
    - `languages` string[] — An array with the language codes for multilingual messages. Available for the GET method only.
    - `from` string, required — Sender name. Must exist in your account.
    - `transactional` boolean — Transactional messages have lower cost, but can contain only text. Content must be agreed with provider for successful sending. Default - false.
    - `text` string, required — Message text.
    - `img` string — Image URL for message. If set, caption and action must be set too.
    - `caption` string — Button text. If set, img and action must be set too.
    - `action` string — Link assigned to button. If set, img and caption must be set too.
    - `ttlSec` integer — Time to live for message in seconds. Default - 86400 (1 day).
    - `smsFallback` boolean — Enables smsFallback feature: send SMS message instead of Viber, if contact does not have Viber app installed. Default - false.
    - `smsSender` string — SMS sender name for smsFallback feature.
    - `smsContent` string — SMS text for smsFallback feature.
    - `carouselItems` ViberCarouselItem[] — Carousel items (2-5 items). When provided, img/action/caption are ignored.
      - `img` string, required — Image URL (png, jpeg). HTTPS recommended.
      - `title` string, required — Short card title
      - `primaryCaption` string, required — Primary button name
      - `primaryAction` string, required — Primary button link
      - `secondaryCaption` string — Secondary button name
      - `secondaryAction` string — Secondary button link

## Response `200`

---

[API](https://skmtc.net/esputnik/apis/esputnik-com.md) · [All operations](https://skmtc.net/esputnik/apis/esputnik-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/esputnik/esputnik-com/versions/1c4afd7ba72a/schema)
