Stream Chat icon

Stream Chat

Server-side Stream Chat operations

Channel → Add Moderators

AI-generated

Summary

Add one or more users as moderators to a specified chat channel by providing the channel type, channel ID, and a comma-separated list of user IDs to promote.

Inputs

  • Channel Type — Type of the channel, such as "messaging", "team", or "livestream". Defaults to "messaging" if not specified.
  • Channel ID (required) — Unique identifier of the channel to which moderators will be added (e.g., "general", "random").
  • Members (required) — Comma-separated list of user IDs to add as moderators (e.g., "john_doe,jane_smith,admin123"). No spaces should be included around commas.

Output shape

a single record

Returns the API response JSON after adding the specified users as moderators to the channel. This response typically includes details about the channel and the change in moderator status.

Discussion