Genesys Cloud JS SDK: Muting Agent Microphone via Client API

I’m completely stumped as to why the conversationParticipant object lacks the expected mute method in the current SDK version. I am attempting to programmatically mute an agent during a voice interaction within a custom web widget.

const participant = await client.platformApi.conversationsApi.getConversationParticipant(...);
participant.mute(true); // TypeError: participant.mute is not a function

The API documentation suggests this should be available for active participants. Is this functionality deprecated, or must I use a specific REST endpoint instead?

the get endpoint returns a data model, not a controller. use updateConversationParticipant with a JSON payload to toggle mute.

{
 "mute": true,
 "hold": false
}

send this via PATCH /api/v2/conversations/voice/{id}/participants/{pid}. ensure conversations:write scope. direct method calls on retrieved objects do not exist in the JS SDK.