MAX icon

MAX

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

Чат → Удалить чат

AI-generated

Summary

Deletes a group chat in the MAX messenger by ID, sending an authenticated DELETE request to the MAX platform API (/chats/{chatId}).

Inputs

  • chatId (required) — ID of the group chat to delete. It is inserted directly into the request URL. Can be set per item with an expression.

Output shape

One output item per input item. Its json field is the parsed response body from MAX's DELETE /chats/{chatId} endpoint.

The source doesn't transform the response, so the exact fields depend on the MAX API. It is typically a success indicator. The operation is destructive and irreversible. With 'Continue on Fail' enabled, a failed item returns {error: message} instead of stopping the workflow. Uses the maxApi credential.

Examples

Example 1: Remove a temporary group chat after an event ends

Resource: Чат; Operation: Удалить чат; ID чата: the chat ID, e.g. {{ $json.chat_id }}

Links

Discussion