Skip to main content

Update a Queue

Use this endpoint for the Queues method to modify the properties of a single call queue.

Parameters

ParameterDescription
FriendlyName OptionalUpdate the description that distinguishes a queue.
MaxSize OptionalUpdate the maximum number of calls that are allowed to wait in a queue.

Examples

Request

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

Request: Update the Size of a Queue

Change the maximum size of a call queue to 200 queue members.

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

Responses

200 OK

{
"account_sid": "b3877c40-da60-4998-90ad-b792e98472ac",
"average_wait_time": 0,
"current_size": 0,
"date_created": "Wed, 26 Sept 2018 18:00:00 +0000",
"date_updated": "Thur, 27 Sept 2018 19:00:00 +0000",
"friendly_name": "Queue1",
"max_size": 200,
"sid": "b3877c40-da60-4998-90ad-b792e98472qu",
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472ac/Queues/b3877c40-da60-4998-90ad-b792e98472qu.json"
}