# zoomSdk.toggleParticipantMediaAudio not working properly

**URL:** <https://devforum.zoom.us/t/zoomsdk-toggleparticipantmediaaudio-not-working-properly/72589>\
**Category:** Zoom Apps\
**Created:** [July 20, 2022, 10:18pm UTC](https://devforum.zoom.us/t/zoomsdk-toggleparticipantmediaaudio-not-working-properly/72589 "2022-07-20T22:18:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathan.crockett](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jonathan.crockett/32/37712_2.png) [@jonathan.crockett](https://devforum.zoom.us/u/jonathan.crockett)\
**Post date:** [July 20, 2022, 10:18pm UTC](https://devforum.zoom.us/t/zoomsdk-toggleparticipantmediaaudio-not-working-properly/72589/1 "2022-07-20T22:18:26Z")

</div>

### Description

Calling this function according to the documentation does not properly mute and unmute participants. It only mutes and unmutes everyone sans host.

In the documentation it specifies to populate the “participants” array with participantUUIDs however doing this does not work and triggers a console “deprecated” error.

See:  
[https://appssdk.zoom.us/classes/ZoomSdk.ZoomSdk-1.html#toggleParticipantMediaAudio](https://appssdk.zoom.us/classes/ZoomSdk.ZoomSdk-1.html#toggleParticipantMediaAudio)

```auto
zoomSdk.toggleParticipantMediaAudio( {// (host/cohost)
  "participants":['participantUUID1','participantUUID2'....],
  "audio": true | false
  })
  .then(function(response) => {})
  .catch(function(error) => {
           // handle error
  })

```

When populating this with the deprecated participantId it works as expected.

### Steps to repro:

1. Create meeting with at least two users.
2. As a host, open zoom app that has the ability to mute a specific user.
3. Mute a specific user by calling the toggleParticipantMediaAudio function with that specified users participantUUID.

### Expected result

It will confirm to mute the specific user

### Actual result

It displays a message to mute ALL users.

### Note

My best guess is that there should be a property participantUUIDs in line with other methods.

Something like:

```auto
zoomSdk.toggleParticipantMediaAudio( {// (host/cohost)
 "participantUUIDs":['participantUUID1','participantUUID2'....],  

```

to do this api call however looking in the zoomapps source code shows this property to note exist.

Can you please confirm if this is a bug and if so when a fix may be implemented? Thanks!

---

<div class="post-metadata">

**Author:** ![narmadaravali](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/narmadaravali/32/39496_2.png) [@narmadaravali](https://devforum.zoom.us/u/narmadaravali)\
**Post date:** [July 21, 2022, 7:36pm UTC](https://devforum.zoom.us/t/zoomsdk-toggleparticipantmediaaudio-not-working-properly/72589/2 "2022-07-21T19:36:50Z")

</div>

Hi @jonathan.crockett thanks for reporting it.

I am able to reproduce it. It’s a bug in SDK and docs are also misleading. We will fix it in an up coming release.

---

<div class="post-metadata">

**Author:** ![jonathan.crockett](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jonathan.crockett/32/37712_2.png) [@jonathan.crockett](https://devforum.zoom.us/u/jonathan.crockett)\
**Post date:** [July 22, 2022, 2:22pm UTC](https://devforum.zoom.us/t/zoomsdk-toggleparticipantmediaaudio-not-working-properly/72589/3 "2022-07-22T14:22:48Z")

</div>

Ok thank you for your quick response!

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [July 28, 2022, 7:33pm UTC](https://devforum.zoom.us/t/zoomsdk-toggleparticipantmediaaudio-not-working-properly/72589/4 "2022-07-28T19:33:36Z")

</div>

Closed on July 28, 2022, 7:33pm UTC


