TaskrouterV1Activity
post/v1/Workspaces/{WorkspaceSid}/Activities

Request

  • Base URL
    https://taskrouter.twilio.com
  • URL
    https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Activities
  • Auth
    HTTP basic

Path parameters

WorkspaceSidstring required

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

Request body application/x-www-form-urlencoded

FriendlyNamestring required

A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: on-call, break, and email.

Availableboolean

Whether the Worker should be eligible to receive a Task when it occupies the Activity. A value of true, 1, or yes specifies the Activity is available. All other values specify that it is not. The value cannot be changed after the Activity is created.

Response

Created

account_sidstring nullable

The SID of the Account that created the Activity resource.

availableboolean nullable

Whether the Worker is eligible to receive a Task when it occupies the Activity. A value of true, 1, or yes indicates the Activity is available. All other values indicate that it is not. The value cannot be changed after the Activity is created.

date_createdstring date-time nullable

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

date_updatedstring date-time nullable

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

friendly_namestring nullable

The string that you assigned to describe the Activity resource.

sidstring nullable

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

workspace_sidstring nullable

The SID of the Workspace that contains the Activity.

urlstring uri nullable

The absolute URL of the Activity resource.

linksobject nullable

Changes