Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL
POST
/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json
Calls in a call queue
Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL
Path parameters
-
AccountSid string Required
The SID of the Account that created the Member resource(s) to update.
-
QueueSid string Required
The SID of the Queue in which to find the members to update.
-
CallSid string Required
The Call SID of the resource(s) to update.
Body
-
Method string(http-method)
How to pass the update request data. Can be
GET
orPOST
and the default isPOST
.POST
sends the data as encoded form data andGET
sends the data as query parameters.Values are
HEAD
,GET
,POST
,PATCH
,PUT
, orDELETE
. -
Url string(uri) Required
The absolute URL of the Queue resource.
POST /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json
curl \
-X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Method=HEAD&Url=https%3A%2F%2Fexample.com'
Request example
{
"Method": "HEAD",
"Url": "https://example.com"
}
Response examples (200)
{
"call_sid": "string",
"date_enqueued": "string",
"position": 42,
"queue_sid": "string",
"uri": "https://example.com",
"wait_time": 42
}