Stream Chat icon

Stream Chat

Server-side Stream Chat operations

Channel → Demote Moderators

AI-generated

Summary

Demote specified users from moderator roles within a given Stream Chat channel by channel type and ID.

Inputs

  • Channel Type — Type of the channel such as "messaging" for 1-on-1 chats, "team" for group channels, or "livestream" for broadcast channels. Defaults to "messaging".
  • Channel ID (required) — Unique identifier of the channel (e.g., "general", "random", "team-alpha") to target for demoting moderators.
  • Members (required) — Comma-separated list of user IDs to demote from moderator status in the specified channel (e.g., "john_doe,jane_smith,admin123"). No spaces around commas.

Output shape

A single JSON object representing the updated channel state or operation result after demoting the given moderators.

Returns the raw API response from the Stream Chat server. Moderation changes may take a few seconds to propagate. Ensure the specified users are currently moderators in the specified channel for demotion to succeed.

Discussion