TaskrouterActivity
Create Activity
Authorization
accountSid_authToken AuthorizationBasic <token>
In: header
Path Parameters
WorkspaceSid*string
The SID of the Workspace that the new Activity belongs to.
Match
^WS[0-9a-fA-F]{32}$Length
34 <= length <= 34Request Body
application/x-www-form-urlencoded
FriendlyName*string
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.
Available?boolean
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 Body
application/json
curl -X POST "https://example.com/v1/Workspaces/stringstringstringstringstringstri/Activities" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'Available=true&FriendlyName=friendly_name'{ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "available": true, "date_created": "2014-05-14T10:50:02Z", "date_updated": "2014-05-14T23:26:06Z", "friendly_name": "New Activity", "sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Activities/WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "links": { "workspace": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }}