Is it possible to programmatically mute the local agent’s microphone using the Genesys Cloud Android SDK within a Kotlin coroutine? The ConversationsApi exposes patchConversationCall but I cannot locate the specific JSON structure for the mediaState field to toggle isMuted.
I attempted sending a PATCH to /api/v2/conversations/calls/{conversationId} with a body of {"mediaState": {"isMuted": true}} but received a 400 Bad Request. The SDK documentation for CallParticipant is sparse regarding real-time media control flags.
Here is the Kotlin snippet triggering the error:
val participant = CallParticipant().apply { isMuted = true }
apiClient.patchConversationCall(conversationId, participant)
Does the endpoint require a specific action enum value alongside the state?