Docs
Set Activity State
PUT /Activities/{activityId}/state
PUT
/Activities/{activityId}/stateMoves an activity between the working states Draft, Tentative and Confirmed, in any direction, and returns the new state, when it first left Draft and how many people a move into Confirmed notified (crew participants with a user, not the caller). Leaving Draft needs a start time and, on a typed activity, its required attributes and roles and a submitted intake; a refusal lists what is missing. Needs Activity.Edit on the activity (a crew organizer holds it); the id comes from Activities_GetActivities, and it needs an event token. With an organization token and no event token it changes an organization activity under the same rule.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| activityId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| state | string | Optional |
Response
| Field | Type | Description |
|---|---|---|
| state | string| null | |
| activatedAt | date-time| null | |
| notifiedCount | integer |