Update queue max size
POST/queues/:queue_name
Update the maximum size of an existing queue
Request
Path Parameters
queue_name stringrequired
Uniquely identifies the queue by name
- application/json
Body
required
Queue max size update request
max_size QueueMaxSize (integer)required
Possible values: >= 1
and <= 300
Default value: 300
Maximum number of calls that can be in the queue at once
Responses
200: Successful response with details about a queue.
- application/json
404: Conference does not exist
default: Unexpected error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/queues/:queue_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"max_size": 100
}'
Response samples
{
"data": {
"record_type": "queue",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "support",
"created_at": "2019-01-23T18:10:02.574Z",
"updated_at": "2019-01-23T18:10:02.574Z",
"current_size": 20,
"max_size": 50,
"average_wait_time_secs": 175
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}