Mega icon

Mega

Work with Mega API

Chat Room → Add Members

AI-generated

Summary

Add one or more users to a specified chat room by providing the chat room ID and a JSON array of user IDs to add.

Inputs

  • Chat Room ID (required) — The numeric ID of the chat room to which members will be added.
  • User IDs (required) — A JSON array containing the user IDs to add to the chat room.

Output shape

a JSON object representing the updated state or response from the chat room service regarding member addition

The operation returns the API response after adding members. Details depend on the underlying service's response format; pagination and error handling follow the API's conventions.

Examples

Example 1: Add multiple users to a chat room

Set Chat Room ID to the target room's ID, and User IDs to a JSON array of user IDs to be added.

Links

Discussion