import plivo

client = plivo.RestClient(auth_id="<auth_id>", auth_token="<auth_token>")

response = client.multi_party_calls.update_participant(
            participant_id = member_id,
            uuid = mpc_uuid,
            coach_mode = True,
            mute = True,
            hold = True
        )
print(response) 
{
  "api_id": "03042285-45d9-11eb-9014-0242ac110003",
  "coach_mode": "MPC: test_mpc_1 coach_mode enable/disable succeeded",
  "hold": "MPC: test_mpc_1 hold/unhold member(s) succeeded",
  "mute": "MPC: test_mpc_1 mute/unmute member(s) succeeded"
}

Perform actions on the participants in a multiparty call to mute, unmute, hold, and unhold.

POST
https://api.plivo.com/v1/Account/{Auth Id}/MultiPartyCall/name_{mpc_name}/Participant/{all | member_id}/

Arguments

  
mute booleanAllowed values: true, false
hold booleanAllowed values: true, false
coach_mode booleanAllowed values: true, false
If coach_mode is false for a supervisor, then a beep:1 will be played on the multiparty call and the supervisor will become audible to all participants, including the customer.
If coach_mode is updated from false to true for a supervisor, then a beep:1 will be played on the multiparty call and the supervisor will become audible only to agents.
Updating coach_mode is permitted only when invoking the API on a specific participant’s member ID. Triggering the API on all participants returns a 400 Bad Request error response.

Returns

Returns an acknowledgement that the participant’s (member_id) state has been updated in the specific ongoing multiparty call.

import plivo

client = plivo.RestClient(auth_id="<auth_id>", auth_token="<auth_token>")

response = client.multi_party_calls.update_participant(
            participant_id = member_id,
            uuid = mpc_uuid,
            coach_mode = True,
            mute = True,
            hold = True
        )
print(response) 
{
  "api_id": "03042285-45d9-11eb-9014-0242ac110003",
  "coach_mode": "MPC: test_mpc_1 coach_mode enable/disable succeeded",
  "hold": "MPC: test_mpc_1 hold/unhold member(s) succeeded",
  "mute": "MPC: test_mpc_1 mute/unmute member(s) succeeded"
}