---
title: "Add/update translated App Inbox message"
method: PUT
path: "/api/v1/messages/appinbox/{id}/{language}"
tags: ["Messages"]
---

# Add/update translated App Inbox message

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

The method is used for updating or adding language versions for the basic App Inbox message.

## Path parameters

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

## Request body

- BaseAppInboxMessage
  - `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.
  - `title` string, required — Message title.
  - `text` string, required — Message text.
  - `link` string — The link that will open after the click on the message body.
  - `imageSource` string — The logo image in JPEG, PNG or GIF format.
  - `customData` string — Additional parameters in JSON format to be used in the message.
  - `ttlSec` integer — Time-to-live for the message, in seconds.
  - `translations` AppInboxMessage[] — The array of the language versions for the current message. 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.
    - `title` string, required — Message title.
    - `text` string, required — Message text.
    - `link` string — The link that will open after the click on the message body.
    - `imageSource` string — The logo image in JPEG, PNG or GIF format.
    - `customData` string — Additional parameters in JSON format to be used in the message.
    - `ttlSec` integer — Time-to-live for the message, in seconds.

## 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)
