Path parameters
-
The SID of the Workspace with the TaskQueue to update.
-
The SID of the TaskQueue resource to update.
Body
-
AssignmentActivitySid string
The SID of the Activity to assign Workers when a task is assigned for them.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^WA[0-9a-fA-F]{32}$
. -
FriendlyName string
A descriptive string that you create to describe the TaskQueue. For example
Support-Tier 1
,Sales
, orEscalation
. -
MaxReservedWorkers integer
The maximum number of Workers to create reservations for the assignment of a task while in the queue. Maximum of 50.
-
ReservationActivitySid string
The SID of the Activity to assign Workers when a task is reserved for them.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^WA[0-9a-fA-F]{32}$
. -
TargetWorkers string
A string describing the Worker selection criteria for any Tasks that enter the TaskQueue. For example '"language" == "spanish"' If no TargetWorkers parameter is provided, Tasks will wait in the queue until they are either deleted or moved to another queue. Additional examples on how to describing Worker selection criteria below.
-
TaskOrder string
How Tasks will be assigned to Workers. Can be:
FIFO
orLIFO
and the default isFIFO
. UseFIFO
to assign the oldest task first andLIFO
to assign the most recent task first. For more information, see Queue Ordering.Values are
FIFO
orLIFO
.
curl \
-X POST https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'AssignmentActivitySid=string&FriendlyName=string&MaxReservedWorkers=42&ReservationActivitySid=string&TargetWorkers=string&TaskOrder=FIFO'
{
"AssignmentActivitySid": "string",
"FriendlyName": "string",
"MaxReservedWorkers": 42,
"ReservationActivitySid": "string",
"TargetWorkers": "string",
"TaskOrder": "FIFO"
}
{
"AssignmentActivitySid": "string",
"FriendlyName": "string",
"MaxReservedWorkers": 42,
"ReservationActivitySid": "string",
"TargetWorkers": "string",
"TaskOrder": "FIFO"
}
{
"account_sid": "string",
"assignment_activity_name": "string",
"assignment_activity_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"friendly_name": "string",
"links": {},
"max_reserved_workers": 42,
"reservation_activity_name": "string",
"reservation_activity_sid": "string",
"sid": "string",
"target_workers": "string",
"task_order": "FIFO",
"url": "https://example.com",
"workspace_sid": "string"
}
{
"account_sid": "string",
"assignment_activity_name": "string",
"assignment_activity_sid": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"friendly_name": "string",
"links": {},
"max_reserved_workers": 42,
"reservation_activity_name": "string",
"reservation_activity_sid": "string",
"sid": "string",
"target_workers": "string",
"task_order": "FIFO",
"url": "https://example.com",
"workspace_sid": "string"
}