メニュー

Expand
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Task Channel Resource

Task Channels provide a mechanism to separate tasks of different types.

You can specify different concurrent capacity for tasks of each type. For example, one Worker might be able to handle 10 SMS Tasks at any given time, but only a single phone call Task. When MultiTasking is enabled, you can specify the task type by passing the Unique Name or SID of the Task Channel.

TaskChannel properties

Names in REST API format
account_sid
sid<AC> Not PII

The SID of the Account that created the TaskChannel resource.

date_created
date_time<iso8601> Not PII

The date and time in GMT when the resource was created specified in ISO 8601 format.

date_updated
date_time<iso8601> Not PII

The date and time in GMT when the resource was last updated specified in ISO 8601 format.

friendly_name
文字列 Not PII

The string that you assigned to describe the resource.

sid
sid<TC> Not PII

The unique string that we created to identify the TaskChannel resource.

unique_name
文字列 Not PII

An application-defined string that uniquely identifies the TaskChannel, such as voice or sms.

workspace_sid
sid<WS> Not PII

The SID of the Workspace that contains the TaskChannel.

channel_optimized_routing
boolean Not PII

Whether the TaskChannel will prioritize Workers that have been idle. When true, Workers that have been idle the longest are prioritized.

url
url Not PII

The absolute URL of the TaskChannel resource.

links
uri_map Not PII

The URLs of related resources.

Create a TaskChannel resource

post
https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/TaskChannels
パラメーター
Names in REST API format
workspace_sid
Path
post sid<WS> Not PII

The SID of the Workspace that the new TaskChannel belongs to.

friendly_name
必須
post 文字列 Not PII

A descriptive string that you create to describe the TaskChannel. It can be up to 64 characters long.

unique_name
必須
post 文字列 Not PII

An application-defined string that uniquely identifies the TaskChannel, such as voice or sms.

channel_optimized_routing
オプション
post boolean Not PII

Whether the TaskChannel should prioritize Workers that have been idle. If true, Workers that have been idle the longest are prioritized.

        
        
        
        

        Fetch a TaskChannel resource

        GET
        https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}
        パラメーター
        Names in REST API format
        workspace_sid
        Path
        GET sid<WS> Not PII

        The SID of the Workspace with the TaskChannel to fetch.

        sid
        Path
        GET sid_like<TC> Not PII

        The SID of the TaskChannel resource to fetch.

              
              
              
              

              Read multiple TaskChannel resources

              GET
              https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/TaskChannels
              パラメーター
              Names in REST API format
              workspace_sid
              Path
              GET sid<WS> Not PII

              The SID of the Workspace with the TaskChannel to read.

                    
                    
                    
                    

                    Update a TaskChannel resource

                    post
                    https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}
                    パラメーター
                    Names in REST API format
                    workspace_sid
                    Path
                    post sid<WS> Not PII

                    The SID of the Workspace with the TaskChannel to update.

                    sid
                    Path
                    post sid_like<TC> Not PII

                    The SID of the TaskChannel resource to update.

                    friendly_name
                    オプション
                    post 文字列 Not PII

                    A descriptive string that you create to describe the TaskChannel. It can be up to 64 characters long.

                    channel_optimized_routing
                    オプション
                    post boolean Not PII

                    Whether the TaskChannel should prioritize Workers that have been idle. If true, Workers that have been idle the longest are prioritized.

                          
                          
                          
                          

                          Delete a TaskChannel resource

                          削除する
                          https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}
                          パラメーター
                          Names in REST API format
                          workspace_sid
                          Path
                          削除する sid<WS> Not PII

                          The SID of the Workspace with the TaskChannel to delete.

                          sid
                          Path
                          削除する sid_like<TC> Not PII

                          The SID of the TaskChannel resource to delete.

                                
                                
                                
                                
                                Rate this page:

                                ヘルプが必要ですか?

                                誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。