Docs

Set Activity State

PUT /Activities/{activityId}/state

PUT/Activities/{activityId}/state

Moves 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

FieldTypeRequiredDescription
activityIduuidRequired

Request Body

FieldTypeRequiredDescription
statestringOptional

Response

FieldTypeDescription
statestring| null
activatedAtdate-time| null
notifiedCountinteger