Path parameters
-
The SID of the Workspace with the TaskQueue to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^WS[0-9a-fA-F]{32}$
. -
The SID of the TaskQueue resource to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^WQ[0-9a-fA-F]{32}$
.
Body
-
A descriptive string that you create to describe the TaskQueue. For example
Support-Tier 1
,Sales
, orEscalation
. -
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.
-
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}$
. -
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}$
. -
The maximum number of Workers to create reservations for the assignment of a task while in the queue. Maximum of 50.
-
How Tasks will be assigned to Workers. Set this parameter to
LIFO
to assign most recently created Task first orFIFO
to assign the oldest Task. Default is FIFO. Click here to learn more.Values are
FIFO
orLIFO
.
curl \
--request POST 'https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'FriendlyName=friendly_name&TargetWorkers=target_workers&OperatingUnitSid=OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&MaxReservedWorkers=1&AssignmentActivitySid=WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&ReservationActivitySid=WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
{"FriendlyName"=>"friendly_name", "TargetWorkers"=>"target_workers", "OperatingUnitSid"=>"OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "MaxReservedWorkers"=>1, "AssignmentActivitySid"=>"WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "ReservationActivitySid"=>"WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
{
"sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues/WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"workspace": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"statistics": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues/WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics",
"list_statistics": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues/Statistics",
"assignment_activity": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Activities/WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"real_time_statistics": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues/WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RealTimeStatistics",
"reservation_activity": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Activities/WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"cumulative_statistics": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues/WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CumulativeStatistics",
"bulk_real_time_statistics": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues/RealTimeStatistics"
},
"task_order": "FIFO",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-08-04T01:31:41Z",
"date_updated": "2015-08-04T01:31:41Z",
"friendly_name": "81f96435-3a05-11e5-9f81-98e0d9a1eb73",
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"target_workers": null,
"operating_unit_sid": "OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"max_reserved_workers": 1,
"assignment_activity_sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"assignment_activity_name": "817ca1c5-3a05-11e5-9292-98e0d9a1eb73",
"reservation_activity_sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"reservation_activity_name": "80fa2beb-3a05-11e5-8fc8-98e0d9a1eb73"
}