Queues
A Queue resource describes a call queue that contains individual calls.
Table-Specific Information
A Queue resource describes a call queue that contains individual calls, which are described by the queue's Members subsresource. Your account can have more than one call queue.
Select
Twilio allows only a small subset of columns to be used in the WHERE clause of a SELECT query. The provider uses the Twilio api to process WHERE clause conditions built with the following columns and operator:
- Sid supports the = operator.
SELECT * FROM Queues;
SELECT * FROM Queues WHERE Sid = 'QU5b50281a74c6168acdf884e419990ea1';
Insert
To add a Queue, at least Name should be specified. Additional columns that are available for insert are: MaxSize.
INSERT INTO Queues (MaxSize, Name) VALUES (34, 'testing');
Update
UPDATE Queues SET MaxSize = 50, Name = 'Test value' WHERE SID = 'QU5b50281a74c6168acdf884e419990ea1';
Delete
DELETE FROM Queues WHERE SID = 'QUb6b54410a940521a074713abfd5a4226'
Columns
| Name | Type | ReadOnly | References | Description |
| Sid [KEY] | String | True |
The unique string that that we created to identify this Queue resource. | |
| AccountSid | String | True |
The Id of the account that created this Conference resource. | |
| DateCreated | Datetime | True |
Date and time when the resource was created. | |
| DateUpdated | Datetime | True |
Date and time when the resource was updated. | |
| CurrentSize | Integer | True |
The number of calls currently in the queue. | |
| Name | String | False |
A string that you assigned to describe this resource. | |
| Uri | String | True |
The URI of this resource. | |
| AverageWaitTime | Integer | True |
The average wait time in seconds of the members in this queue. This is calculated at the time of the request. | |
| MaxSize | Integer | False |
The maximum number of calls that can be in the queue. | |
| SubresourceUris | String | True |
The subresources available for the given queue. |