TaskrouterTask Channel
Update Task Channel
Authorization
accountSid_authToken AuthorizationBasic <token>
In: header
Path Parameters
WorkspaceSid*string
The SID of the Workspace with the Task Channel to update.
Match
^WS[0-9a-fA-F]{32}$Length
34 <= length <= 34Sid*string
The SID of the Task Channel resource to update.
Request Body
application/x-www-form-urlencoded
FriendlyName?string
A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long.
ChannelOptimizedRouting?boolean
Whether the TaskChannel should prioritize Workers that have been idle. If true, Workers that have been idle the longest are prioritized.
Response Body
application/json
curl -X POST "https://example.com/v1/Workspaces/stringstringstringstringstringstri/TaskChannels/string" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'FriendlyName=Outbound+Voice&ChannelOptimizedRouting=true'{ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "sid": "TCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "friendly_name": "Default", "unique_name": "default", "date_created": "2016-04-14T17:35:54Z", "date_updated": "2016-04-14T17:35:54Z", "url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskChannels/TCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "channel_optimized_routing": true, "links": { "workspace": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }}