MAX icon

MAX

Отправка сообщений и работа с API мессенджера MAX

Чат → Обновить

AI-generated

Summary

Changes the title and/or description of a MAX group chat by sending a PATCH request to /chats/{chatId} for each input item.

Inputs

  • chatId (required) — ID of the group chat to update.
  • chatTitle — New chat title. Sent as title only if non-empty; an empty value leaves the title unchanged.
  • chatDescription — New chat description (multi-line). Sent as description only if non-empty; an empty value leaves it unchanged.

Output shape

One output item per input item, whose json is the MAX API response to the PATCH request.

The source doesn't process the response, so its exact fields depend on the MAX API. If both title and description are empty, an empty body is still sent. With Continue On Fail enabled, a failed item returns {error: message} instead of stopping the workflow. The description cannot be cleared, because empty values are omitted.

Examples

Example 1: Rename a project group chat when a project changes its name

Resource: Чат; Operation: Обновить; ID чата: -70931657203722; Название чата: "Project Phoenix – Q4"; leave Описание empty.

Example 2: Update the chat description from an earlier node's data

ID чата: {{ $json.chat_id }}; Описание чата: {{ $json.newDescription }}; leave Название empty.

Links

Discussion