I would like to provide a button which mutes all conference participants who aren't moderators. The Twilio docs only show how to mute participants one at a time, each with a separate call to the Twilio API. Is there a way to batch these update requests, supplying multiple call SIDs? I'm using the Node JS library on Firebase Functions.
I thought that updating by participants' labels (e.g. "moderator", "attendee") would be the solution, but each participant's label must be unique.
Cheers
Muting one at a time is the correct way to do this.
Conference Participant Resource
Examples: "Mute Participant" and "Mute Participant by Label"
It looks like on way is, "Read multiple Participant resources" for your conference SID, and then once you have that result, loop through each participant and if their label is undefined, mute them. Anyone with a label would be a moderator.