TaskrouterWorker Channel
Update Worker Channel
Authorization
accountSid_authToken AuthorizationBasic <token>
In: header
Path Parameters
WorkspaceSid*string
The SID of the Workspace with the WorkerChannel to update.
Match
^WS[0-9a-fA-F]{32}$Length
34 <= length <= 34WorkerSid*string
The SID of the Worker with the WorkerChannel to update.
Match
^WK[0-9a-fA-F]{32}$Length
34 <= length <= 34Sid*string
The SID of the WorkerChannel to update.
Request Body
application/x-www-form-urlencoded
Capacity?integer
The total number of Tasks that the Worker should handle for the TaskChannel type. TaskRouter creates reservations for Tasks of this TaskChannel type up to the specified capacity. If the capacity is 0, no new reservations will be created.
Available?boolean
Whether the WorkerChannel is available. Set to false to prevent the Worker from receiving any new Tasks of this TaskChannel type.
Response Body
application/json
curl -X POST "https://example.com/v1/Workspaces/stringstringstringstringstringstri/Workers/stringstringstringstringstringstri/Channels/string" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'Capacity=3'{ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "assigned_tasks": 0, "available": true, "available_capacity_percentage": 100, "configured_capacity": 3, "date_created": "2016-04-14T17:35:54Z", "date_updated": "2016-04-14T17:35:54Z", "sid": "WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "task_channel_sid": "TCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "task_channel_unique_name": "default", "url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "worker_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}