Moderate group call
POST/groupCallAdmin
Runs a moderator action in a group call, chosen with act. Moderators of the conversation may use every action, everyone else only raise_hand and lower_own_hand. Participants are named by their call identity, user_ and the user ID (user_-5 for a guest). Requires WebSocket version.
The actions:
lock_room,unlock_room: keep everyone but moderators from joining, or let them join againset_broadcast_mode,set_participatory_mode: switch the call between broadcast and participatory modemute_all,unmute_all: mute or unmute everyone's microphone, or withidentitiesonly the people listedend_call(3.2): end the call for everyone, taking out the people inidentitiesremove_participant: takeidentityout of the call. They can join again.ban_participant(3.2): Remove and Ban from Calls. Takesidentityout of the call and keeps them from the conversation's calls fordurationminutes, and withchatalso bans them from the conversation where that is offered (canBanFromChatof/groupCallStart: group conversations and chat rooms). Answers with the updated thread data. Lift the ban with/thread/{id}/callUnbanUser.mute_participant,unmute_participant: stopidentityfrom sending audio and video, or let them againmute_mic,unmute_mic: mute or unmute the microphone ofidentitypromote_participant,demote_participant: in broadcast mode, letidentityspeak and show video, or make them a viewer againpin_participant,unpin_participant: pinidentityin the call, or unpin themspotlight_participant,unspotlight_participant(3.2): putidentityin the spotlight for everyone, up to four people, or take them out of itask_camera,ask_microphone,ask_camera_microphone(3.2): askidentityto turn on their camera, their microphone, or both in one ask. Once in 30 seconds for each moderator, person and device, and never yourself. Answers{ "asked": true }.raise_hand,lower_own_hand: raise or lower your own handlower_hand: lower the hand ofidentity
Request#
Responses#
- 200
- 400
- 403
- 409
- 429
- 502
Done. true for the room settings and end_call, the updated thread data for ban_participant, { "asked": true } for the asks, and the call server's answer for the other actions.
The call type is not audio or video (invalid_type), or the participant is not valid for the action (invalid_identity)
The user is not a moderator of the conversation (forbidden), or may not ban this person (rest_forbidden)
Four people are already in the spotlight (spotlight_full)
The same ask was sent less than 30 seconds ago (asked_recently)
The call server could not do it (call_server_refused), for the spotlight and the asks