Conference participants
Update the properties of the participant
Path parameters
-
The SID of the Account that created the Participant resources to update.
Minimum length is
34, maximum length is34. Format should match the following pattern:^AC[0-9a-fA-F]{32}$. -
The SID of the conference with the participant to update.
Minimum length is
34, maximum length is34. Format should match the following pattern:^CF[0-9a-fA-F]{32}$. -
The Call SID or label of the participant to update. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20.
Body
-
Whether the participant should be muted. Can be
trueorfalse.truewill mute the participant, andfalsewill un-mute them. Anything value other thantrueorfalseis interpreted asfalse. -
Whether the participant should be on hold. Can be:
trueorfalse.trueputs the participant on hold, andfalselets them rejoin the conference. -
The URL we call using the
hold_methodfor music that plays when the participant is on hold. The URL may return an MP3 file, a WAV file, or a TwiML document that contains<Play>,<Say>,<Pause>, or<Redirect>verbs. -
The HTTP method we should use to call
hold_url. Can be:GETorPOSTand the default isGET.Values are
GETorPOST. -
The URL we call using the
announce_methodfor an announcement to the participant. The URL may return an MP3 file, a WAV file, or a TwiML document that contains<Play>,<Say>,<Pause>, or<Redirect>verbs. -
The HTTP method we should use to call
announce_url. Can be:GETorPOSTand defaults toPOST.Values are
GETorPOST. -
The URL that Twilio calls using the
wait_methodbefore the conference has started. The URL may return an MP3 file, a WAV file, or a TwiML document. The default value is the URL of our standard hold music. If you do not want anything to play while waiting for the conference to start, specify an empty string by settingwait_urlto''. For more details on the allowable verbs within thewaitUrl, see thewaitUrlattribute in theTwiML instruction . -
The HTTP method we should use to call
wait_url. Can beGETorPOSTand the default isPOST. When using a static audio file, this should beGETso that we can cache the file.Values are
GETorPOST. -
Whether to play a notification beep to the conference when the participant exits. Can be:
trueorfalse. -
Whether to end the conference when the participant leaves. Can be:
trueorfalseand defaults tofalse. -
Whether the participant is coaching another call. Can be:
trueorfalse. If not present, defaults tofalseunlesscall_sid_to_coachis defined. Iftrue,call_sid_to_coachmust be defined. -
The SID of the participant who is being
coached. The participant being coached is the only participant who can hear the participant who iscoaching.Minimum length is
34, maximum length is34. Format should match the following pattern:^CA[0-9a-fA-F]{32}$.
curl \
--request POST 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Muted=true'
{"Muted" => "true"}
{"Muted" => "true"}
{"Hold" => "true", "HoldUrl" => "http://www.myapp.com/hold"}
{"AnnounceUrl" => "http://www.myapp.com/announce"}
{"Coaching" => true, "CallSidToCoach" => "CAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"}
{"Coaching" => true, "CallSidToCoach" => "CAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"}
{
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"hold": false,
"label": null,
"muted": true,
"status": "connected",
"call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"coaching": false,
"queue_time": null,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
"date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
"conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"call_sid_to_coach": null,
"end_conference_on_exit": false,
"start_conference_on_enter": true
}
{
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"hold": false,
"label": "customer",
"muted": true,
"status": "connected",
"call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"coaching": false,
"queue_time": null,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
"date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
"conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"call_sid_to_coach": null,
"end_conference_on_exit": false,
"start_conference_on_enter": true
}
{
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"hold": true,
"label": null,
"muted": false,
"status": "connected",
"call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"coaching": false,
"queue_time": null,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
"date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
"conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"call_sid_to_coach": null,
"end_conference_on_exit": false,
"start_conference_on_enter": true
}
{
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"hold": false,
"label": null,
"muted": false,
"status": "connected",
"call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"coaching": false,
"queue_time": null,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
"date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
"conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"call_sid_to_coach": null,
"end_conference_on_exit": false,
"start_conference_on_enter": true
}
{
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"hold": false,
"label": null,
"muted": false,
"status": "complete",
"call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"coaching": true,
"queue_time": null,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
"date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
"conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"call_sid_to_coach": "CAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"end_conference_on_exit": false,
"start_conference_on_enter": true
}
{
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"hold": false,
"label": "customer",
"muted": false,
"status": "complete",
"call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"coaching": true,
"queue_time": null,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
"date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
"conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"call_sid_to_coach": "CAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"end_conference_on_exit": false,
"start_conference_on_enter": true
}