# Mute the mic using rest api patch request

**URL:** <https://devforum.zoom.us/t/mute-the-mic-using-rest-api-patch-request/121777>\
**Category:** API and Webhooks\
**Created:** [December 2, 2024, 4:40am UTC](https://devforum.zoom.us/t/mute-the-mic-using-rest-api-patch-request/121777 "2024-12-02T04:40:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![workzoom59](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/workzoom59/32/50430_2.png) [@workzoom59](https://devforum.zoom.us/u/workzoom59)\
**Post date:** [December 2, 2024, 4:40am UTC](https://devforum.zoom.us/t/mute-the-mic-using-rest-api-patch-request/121777/1 "2024-12-02T04:40:44Z")

</div>

I am trying to mute/unmute the mic using the patch request using the Zoom Rest API, but getting the error that the API end point is not recongnized.

here is the code:

```
    static async Task MuteMic(string accessToken, string meetingId, string userId)
    {
        string muteUrl = $"https://api.zoom.us/v2/meetings/{meetingId}/participants/{userId}/audio";

        var muteData = new
        {
            action = "mute"  
        };

        var jsonData = JsonConvert.SerializeObject(muteData);
        var content = new StringContent(jsonData, Encoding.UTF8, "application/json");

        var client = new HttpClient();
        client.DefaultRequestHeaders.Add("Authorization", "Bearer " + accessToken);

        try
        {
           
            var response = await client.PatchAsync(muteUrl, content);

           
            var responseString = await response.Content.ReadAsStringAsync();
            if (response.IsSuccessStatusCode)
            {
                Console.WriteLine("Host microphone muted successfully.");
            }
            else
            {
                Console.WriteLine($"Failed to mute the microphone. Response: {responseString}");
                Console.WriteLine($"Error Code: {response.StatusCode}");
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine("Error occurred while muting the mic: " + ex.Message);
        }
    }

```

i have the correct client id and secret, i am able to start the meeting correctly, get the user id and meeting id, but when i call this function i get error code 2300 and that the api end is not recognized

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 2, 2024, 3:14pm UTC](https://devforum.zoom.us/t/mute-the-mic-using-rest-api-patch-request/121777/2 "2024-12-02T15:14:05Z")

</div>

Hi @workzoom59  
Thanks for reaching out to us and welcome to the Zoom Developer Forum.  
The error you are getting is expected, we do not have that endpoint available, that’s why you are getting that error

---

<div class="post-metadata">

**Author:** ![workzoom59](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/workzoom59/32/50430_2.png) [@workzoom59](https://devforum.zoom.us/u/workzoom59)\
**Post date:** [December 2, 2024, 7:42pm UTC](https://devforum.zoom.us/t/mute-the-mic-using-rest-api-patch-request/121777/3 "2024-12-02T19:42:20Z")

</div>

how can I achieve this functionality that I can programmatically mute my mic in a meeting that i am a participant or host both?

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 12, 2024, 2:01am UTC](https://devforum.zoom.us/t/mute-the-mic-using-rest-api-patch-request/121777/4 "2024-12-12T02:01:09Z")

</div>

Hi @workzoom59  
We do not have an endpoint to programmatically mute your mic in a meeting.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [December 15, 2025, 5:38pm UTC](https://devforum.zoom.us/t/mute-the-mic-using-rest-api-patch-request/121777/5 "2025-12-15T17:38:05Z")

</div>

Closed on December 15, 2025, 5:38pm UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
