Skip to main content

Update a Participant

Use this endpoint for the Conference Participants method to modify the properties of participant in an active conference call.

Parameters

ParameterDescription
AccountSid RequiredThe unique identifier for the account that created this conference.
CallSid RequiredThe unique identifier for the Participant call connected to this conference.
ConferenceSid RequiredThe unique identifier for the conference this participant is in.
CallSidToCoach OptionalThe unique identifier for participant who is being coached. The participant being coached is the only participant who can hear the participant who is coaching.
Coaching OptionalWhether the participant is coaching another call. Possible values are true or false.
AnnounceMethod OptionalWhether the request to AnnounceUrl is a GET or a POST. Default is POST.
AnnounceUrl OptionalThe URL to send participant announcements to.
Hold OptionalWhether or not the participant is on hold. Possible values are true or false.
HoldMethod OptionalWhether the request to HoldUrl is a GET or a POST. Default is POST.
HoldUrl OptionalThe URL to send hold music to that will be played when participant is on hold.
Muted OptionalWhether or not the participant is muted. Possible values are true or false.

Examples

Request

curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json \
-X POST \
-u "YourProjectID:YourAuthToken"

Request: Coaching a Participant

Coaching a Participant

curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json \
-X POST \
--data-urlencode "Muted=False" \
--data-urlencode "Coaching=True" \
--data-urlencode "Beep=False" \
--data-urlencode "CallSidToCoach=CallSidToCoach" \
-u "YourProjectID:YourAuthToken"

Responses

200 OK

{
"account_sid": "b3877c40-da60-4998-90ad-b792e98472af",
"call_sid": "b3877c40-da60-4998-90ad-b792e98472ca",
"conference_sid": "b3877c40-da60-4998-90ad-b792e98472pa",
"date_created": "Mon, 24 Sept 2018 21:00:00 +0000",
"date_updated": "Tue, 25 Sept 2018 20:00:00 +0000",
"end_conference_on_exit": false,
"muted": false,
"hold": false,
"status": "complete",
"start_conference_on_enter": true,
"coaching": true,
"call_sid_to_coach": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Conferences/b3877c40-da60-4998-90ad-b792e98472pa/Participants/b3877c40-da60-4998-90ad-b792e98472ca.json"
}

Request: Monitoring a Conference

Monitoring a Conference

curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json \
-X POST \
--data-urlencode "Muted=True" \
--data-urlencode "Coaching=True" \
--data-urlencode "Beep=False" \
--data-urlencode "CallSidToCoach=CallSidToCoach" \
-u "YourProjectID:YourAuthToken"

Responses

200 OK

{
"account_sid": "b3877c40-da60-4998-90ad-b792e98472af",
"call_sid": "b3877c40-da60-4998-90ad-b792e98472ca",
"conference_sid": "b3877c40-da60-4998-90ad-b792e98472pa",
"date_created": "Mon, 24 Sept 2018 21:00:00 +0000",
"date_updated": "Tue, 25 Sept 2018 20:00:00 +0000",
"end_conference_on_exit": false,
"muted": true,
"hold": false,
"status": "complete",
"start_conference_on_enter": true,
"coaching": true,
"call_sid_to_coach": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Conferences/b3877c40-da60-4998-90ad-b792e98472pa/Participants/b3877c40-da60-4998-90ad-b792e98472ca.json"
}

Request: Barge a Conference

Barge a Conference

curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json \
-X POST \
--data-urlencode "Muted=False" \
--data-urlencode "Coaching=False" \
-u "YourProjectID:YourAuthToken"

Responses

200 OK

{
"account_sid": "b3877c40-da60-4998-90ad-b792e98472af",
"call_sid": "b3877c40-da60-4998-90ad-b792e98472ca",
"conference_sid": "b3877c40-da60-4998-90ad-b792e98472pa",
"date_created": "Mon, 24 Sept 2018 21:00:00 +0000",
"date_updated": "Tue, 25 Sept 2018 20:00:00 +0000",
"end_conference_on_exit": false,
"muted": false,
"hold": false,
"status": "complete",
"start_conference_on_enter": true,
"coaching": false,
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Conferences/b3877c40-da60-4998-90ad-b792e98472pa/Participants/b3877c40-da60-4998-90ad-b792e98472ca.json"
}

Request: Mute a Participant

Mute a Participant

curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json \
-X POST \
--data-urlencode "Muted=True" \
-u "YourProjectID:YourAuthToken"

Responses

200 OK

{
"account_sid": "b3877c40-da60-4998-90ad-b792e98472af",
"call_sid": "b3877c40-da60-4998-90ad-b792e98472ca",
"conference_sid": "b3877c40-da60-4998-90ad-b792e98472pa",
"date_created": "Mon, 24 Sept 2018 21:00:00 +0000",
"date_updated": "Tue, 25 Sept 2018 20:00:00 +0000",
"end_conference_on_exit": false,
"muted": true,
"hold": false,
"status": "complete",
"start_conference_on_enter": true,
"coaching": false,
"call_sid_to_coach": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Conferences/b3877c40-da60-4998-90ad-b792e98472pa/Participants/b3877c40-da60-4998-90ad-b792e98472ca.json"
}

Request: Put a Participant on Hold

In this example, we will place a participant in an active conference on hold and play hold music.

curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json \
-X POST \
--data-urlencode "Hold=True" \
--data-urlencode "HoldUrl=http://www.your-application.com/hold" \
-u "YourProjectID:YourAuthToken"

Responses

200 OK

{
"account_sid": "b3877c40-da60-4998-90ad-b792e98472af",
"call_sid": "b3877c40-da60-4998-90ad-b792e98472ca",
"conference_sid": "b3877c40-da60-4998-90ad-b792e98472pa",
"date_created": "Mon, 24 Sept 2018 21:00:00 +0000",
"date_updated": "Tue, 25 Sept 2018 20:00:00 +0000",
"end_conference_on_exit": false,
"muted": false,
"hold": true,
"hold_url": "http://www.your-application.com/hold",
"status": "complete",
"start_conference_on_enter": true,
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Conferences/b3877c40-da60-4998-90ad-b792e98472pa/Participants/b3877c40-da60-4998-90ad-b792e98472ca.json"
}