Skip to content

Latest commit

 

History

History
146 lines (79 loc) · 4.57 KB

WorkspacesWorkersChannelsApi.md

File metadata and controls

146 lines (79 loc) · 4.57 KB

WorkspacesWorkersChannelsApi

All URIs are relative to https://taskrouter.twilio.com

Method HTTP request Description
FetchWorkerChannel Get /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}
ListWorkerChannel Get /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels
UpdateWorkerChannel Post /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}

FetchWorkerChannel

TaskrouterV1WorkerChannel FetchWorkerChannel(ctx, WorkspaceSidWorkerSidSid)

Path Parameters

Name Type Description
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
WorkspaceSid string The SID of the Workspace with the WorkerChannel to fetch.
WorkerSid string The SID of the Worker with the WorkerChannel to fetch.
Sid string The SID of the WorkerChannel to fetch.

Other Parameters

Other parameters are passed through a pointer to a FetchWorkerChannelParams struct

Name Type Description

Return type

TaskrouterV1WorkerChannel

Authorization

accountSid_authToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListWorkerChannel

[]TaskrouterV1WorkerChannel ListWorkerChannel(ctx, WorkspaceSidWorkerSidoptional)

Path Parameters

Name Type Description
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
WorkspaceSid string The SID of the Workspace with the WorkerChannels to read.
WorkerSid string The SID of the Worker with the WorkerChannels to read.

Other Parameters

Other parameters are passed through a pointer to a ListWorkerChannelParams 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.

Return type

[]TaskrouterV1WorkerChannel

Authorization

accountSid_authToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateWorkerChannel

TaskrouterV1WorkerChannel UpdateWorkerChannel(ctx, WorkspaceSidWorkerSidSidoptional)

Path Parameters

Name Type Description
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
WorkspaceSid string The SID of the Workspace with the WorkerChannel to update.
WorkerSid string The SID of the Worker with the WorkerChannel to update.
Sid string The SID of the WorkerChannel to update.

Other Parameters

Other parameters are passed through a pointer to a UpdateWorkerChannelParams struct

Name Type Description
Capacity int 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 bool Whether the WorkerChannel is available. Set to false to prevent the Worker from receiving any new Tasks of this TaskChannel type.

Return type

TaskrouterV1WorkerChannel

Authorization

accountSid_authToken

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]