POST
/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.jsonUpdate a queue
Updates the name or maximum size of a queue. Use AccountSid and Sid to identify the queue, and supply FriendlyName, MaxSize, or both to change its settings. The response contains the updated queue object.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
AccountSidstringrequired
The account SID, in the format `AC` followed by 32 hexadecimal characters.
Sidstringrequired
The queue SID, in the format `QU` followed by 32 hexadecimal characters.
Queue settings to update. Both fields can be omitted.
FriendlyNamestringoptional
A descriptive string that you created to describe this resource. It can be up to 64 characters long.
MaxSizeintegeroptional
The maximum number of calls allowed to be in the queue. The default is 1000. The maximum is 5000.
200Returns the updated queue object, including its SID, account SID, friendly name, current size, maximum size, average wait time, and creation and update dates.
date_updatedstringoptional
The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
current_sizeintegeroptional
The number of calls currently in the queue.
friendly_namestringoptional
A string that you assigned to describe this resource.
uristringoptional
The URI of this resource, relative to `https://api.twilio.com`.
account_sidstringoptional
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Queue resource.
average_wait_timeintegeroptional
The average wait time in seconds of the members in this queue. This is calculated at the time of the request.
sidstringoptional
The unique string that that we created to identify this Queue resource.
date_createdstringoptional
The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
max_sizeintegeroptional
The maximum number of calls that can be in the queue. The default is 1000 and the maximum is 5000.
Error handling
The AccountSid path parameter must be a 34-character account SID beginning with AC followed by 32 hexadecimal characters, and the Sid path parameter must be a 34-character queue SID beginning with QU followed by 32 hexadecimal characters. FriendlyName can be up to 64 characters, and MaxSize must not exceed 5000; it defaults to 1000 when omitted.