Muting agent mic via JS Platform SDK during active call

Trying to programmatically mute an agent’s microphone during an active call using the Node.js Platform SDK. I’ve got the conversation ID and participant ID, but participantsApi.postConversationParticipantAction seems to only handle hold/unhold or transfer. Is there a specific action type for mute? I tried passing { action: 'mute' } in the JSON payload but got a 400 Bad Request. Any pointers on the correct endpoint or SDK method for this?

await participantsApi.postConversationParticipantAction(
conversationId,
participantId,
{ action: ‘mute’ }
);


The 400 error usually means you're missing the `conversationId` in the header or passing the wrong participant ID. The SDK method is correct. Double check your IDs and ensure the participant is actually in the `connected` state.