All URIs are relative to https://taskrouter.twilio.com
Method | HTTP request | Description |
---|---|---|
CreateTaskChannel | Post /v1/Workspaces/{WorkspaceSid}/TaskChannels | |
DeleteTaskChannel | Delete /v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid} | |
FetchTaskChannel | Get /v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid} | |
ListTaskChannel | Get /v1/Workspaces/{WorkspaceSid}/TaskChannels | |
UpdateTaskChannel | Post /v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid} |
TaskrouterV1TaskChannel CreateTaskChannel(ctx, WorkspaceSidoptional)
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
WorkspaceSid | string | The SID of the Workspace that the new Task Channel belongs to. |
Other parameters are passed through a pointer to a CreateTaskChannelParams struct
Name | Type | Description |
---|---|---|
FriendlyName | string | A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. |
UniqueName | string | An application-defined string that uniquely identifies the Task Channel, such as voice or sms . |
ChannelOptimizedRouting | bool | Whether the Task Channel should prioritize Workers that have been idle. If true , Workers that have been idle the longest are prioritized. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteTaskChannel(ctx, WorkspaceSidSid)
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
WorkspaceSid | string | The SID of the Workspace with the Task Channel to delete. |
Sid | string | The SID of the Task Channel resource to delete. |
Other parameters are passed through a pointer to a DeleteTaskChannelParams struct
Name | Type | Description |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskrouterV1TaskChannel FetchTaskChannel(ctx, WorkspaceSidSid)
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
WorkspaceSid | string | The SID of the Workspace with the Task Channel to fetch. |
Sid | string | The SID of the Task Channel resource to fetch. |
Other parameters are passed through a pointer to a FetchTaskChannelParams struct
Name | Type | Description |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]TaskrouterV1TaskChannel ListTaskChannel(ctx, WorkspaceSidoptional)
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
WorkspaceSid | string | The SID of the Workspace with the Task Channel to read. |
Other parameters are passed through a pointer to a ListTaskChannelParams struct
Name | Type | Description |
---|---|---|
PageSize | int | How many resources to return in each list page. The default is 50, and the maximum is 1000. |
Limit | int | Max number of records to return. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskrouterV1TaskChannel UpdateTaskChannel(ctx, WorkspaceSidSidoptional)
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
WorkspaceSid | string | The SID of the Workspace with the Task Channel to update. |
Sid | string | The SID of the Task Channel resource to update. |
Other parameters are passed through a pointer to a UpdateTaskChannelParams struct
Name | Type | Description |
---|---|---|
FriendlyName | string | A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. |
ChannelOptimizedRouting | bool | Whether the TaskChannel should prioritize Workers that have been idle. If true , Workers that have been idle the longest are prioritized. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]