Mega icon

Mega

Work with Mega API

Chat Room → Update

AI-generated

Summary

Update the specified chat room's name and/or description by providing its ID along with the desired fields to change.

Inputs

  • Chat Room ID (required) — The unique numeric identifier of the chat room to update.
  • Update Fields — An object containing optional fields to update on the chat room, including 'Name' and/or 'Description'.

Output shape

a single record representing the updated chat room details

The operation returns the updated chat room data as a single object. Only the fields provided in 'Update Fields' are changed; others remain unchanged.

Examples

Example 1: Change the name and description of a chat room with ID 12345

Set Chat Room ID to 12345. Under Update Fields, set Name to 'New Room Name' and Description to 'Updated description of the chat.'

Links

Discussion