Update the queue with the new parameters
Queues of calls
Update the queue with the new parameters
Path parameters
-
The SID of the Account that created the Queue resource to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AC[0-9a-fA-F]{32}$
. -
The Twilio-provided string that uniquely identifies the Queue resource to update
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^QU[0-9a-fA-F]{32}$
.
POST
/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json
curl \
--request POST 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'MaxSize=1&FriendlyName=friendly_name'
Request example
{"MaxSize"=>1, "FriendlyName"=>"friendly_name"}
Response examples (200)
{
"sid": "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"max_size": 100,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"current_size": 0,
"date_created": "Tue, 04 Aug 2015 18:39:09 +0000",
"date_updated": "Tue, 04 Aug 2015 18:39:09 +0000",
"friendly_name": "0.361280134646222",
"subresource_uris": {
"members": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members.json"
},
"average_wait_time": 0
}