Mega icon

Mega

Work with Mega API

Chat Room → Update Members

AI-generated

Summary

Update the members of a specific chat room by setting its list of user IDs to a given JSON array.

Inputs

  • Chat Room ID (required) — The ID of the chat room to update.
  • User IDs (required) — A JSON array of user IDs to set as the members of the chat room.

Output shape

no body — success/failure only

The operation does not return data; it confirms successful update or failure through execution outcome.

Examples

Example 1: Update members in chat room 123 to users 1, 2, and 3.

Set Chat Room ID to 123 and User IDs to [1,2,3].

Links

Discussion