Skip to main content

Update a Queue Member

Use this endpoint for the Queue Members method to modify the properties of a queue member that is actively waiting in a call queue.

Parameters

ParameterDescription
call_sid stringThe unique identifier for the call that is enqueued.
date_enqueued datetimeThe date, in RFC 2822 format, the queue member was enqueued.
position integerThe member's current place in the queue.
wait_time integerThe time, in seconds, a member is waiting in a queue.

Examples

Request

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

Request: Dequeue From Front of Queue

Dequeue the member that is waiting at the front of the queue.

curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/Front.json \
-X POST \
--data-urlencode "Url=http://your-application.com/docs/voice.xml" \
--data-urlencode "Method=POST" \
-u "YourProjectID:YourAuthToken"

Responses

200 OK

{
"call_sid": "b3877c40-da60-4998-90ad-b792e98472ca",
"date_enqueued": "Wed, 26 Sept 2018 22:00:00 +0000",
"position": 1,
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472ac/Queues/b3877c40-da60-4998-90ad-b792e98472qu/Members/b3877c40-da60-4998-90ad-b792e98472ca.json",
"wait_time": 143,
"account_sid": "b3877c40-da60-4998-90ad-b792e98472ac",
"method": "POST",
"queue_sid": "b3877c40-da60-4998-90ad-b792e98472qu",
"url": "http://your-application.com/docs/voice.xml"
}

Request: Dequeue Particular Member

Dequeue a particular member by specifying their CallSid. Only the initial dequeue request will return a 200 response. All other dequeue requests on the same CallSid will result in a 400 response.

curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json \
-X POST \
--data-urlencode "Url=http://your-application.com/docs/voice.xml" \
--data-urlencode "Method=POST" \
-u "YourProjectID:YourAuthToken"

Responses

200 OK

{
"call_sid": "b3877c40-da60-4998-90ad-b792e98472ca",
"date_enqueued": "Wed, 26 Sept 2018 22:00:00 +0000",
"position": 1,
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472ac/Queues/b3877c40-da60-4998-90ad-b792e98472qu/Members/b3877c40-da60-4998-90ad-b792e98472ca.json",
"wait_time": 143,
"account_sid": "b3877c40-da60-4998-90ad-b792e98472ac",
"method": "POST",
"queue_sid": "b3877c40-da60-4998-90ad-b792e98472qu",
"url": "http://your-application.com/docs/voice.xml"
}