Properties:
Name | Type | Description |
---|---|---|
accountSid |
string | The sid of the Twilio account |
available |
boolean | If the Worker can handle Tasks in this state |
dateCreated |
Date | The date this Activity was created |
dateUpdated |
Date | The date this Activity was last updated |
isCurrent |
boolean | If this particular Activity represents the current state of the Worker |
name |
string | The friendly name of this Activity |
sid |
string | The sid of this Activity |
workspaceSid |
string | The sid of the Workspace owning this Activity |
Methods
-
setAsCurrent( [options])
-
Make this Activity the current state of the Worker
Parameters:
Name Type Argument Description options
Activity.UpdateOptions <optional>
Returns:
- Rejected if the Worker's activity state could not be set
- Type
- Promise.<this>
Type Definitions
-
UpdateOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description rejectPendingReservations
boolean <optional>
false Represents whether all pending reservations should be rejected with the update to an unavailable Activity.