Update the properties of the participant
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
true
orfalse
.true
will mute the participant, andfalse
will un-mute them. Anything value other thantrue
orfalse
is interpreted asfalse
. -
Whether the participant should be on hold. Can be:
true
orfalse
.true
puts the participant on hold, andfalse
lets them rejoin the conference. -
The URL we call using the
hold_method
for 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:GET
orPOST
and the default isGET
.Values are
GET
orPOST
. -
The URL we call using the
announce_method
for 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:GET
orPOST
and defaults toPOST
.Values are
GET
orPOST
. -
The URL that Twilio calls using the
wait_method
before 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_url
to''
. For more details on the allowable verbs within thewaitUrl
, see thewaitUrl
attribute in theTwiML instruction . -
The HTTP method we should use to call
wait_url
. Can beGET
orPOST
and the default isPOST
. When using a static audio file, this should beGET
so that we can cache the file.Values are
GET
orPOST
. -
Whether to play a notification beep to the conference when the participant exits. Can be:
true
orfalse
. -
Whether to end the conference when the participant leaves. Can be:
true
orfalse
and defaults tofalse
. -
Whether the participant is coaching another call. Can be:
true
orfalse
. If not present, defaults tofalse
unlesscall_sid_to_coach
is defined. Iftrue
,call_sid_to_coach
must 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
}