POST/Activities
Creates an activity with crew, collaborator and area participants, and returns the new activity's id.
Only the name is required: with no state it lands Draft until it has a start time, then Tentative, and
asking for Tentative or Confirmed without a start time is refused with the missing list. A start with
no end makes a marker. With no participants the organizer is the owning organization's collaborator
(for its members) or the caller's crew record. Needs Activity.Manage at the event, or Activity.Manage
at one attached collaborator or area and Activity.Edit at every other; an activity with no collaborator
or area needs the caller among its crew organizers (or no participants named), and a global one needs
Activity.Manage at the event. Crew ids come from Crew_GetCrew, collaborator ids from
Events_GetCollaborators and area ids from Events_GetAreas; needs an event token. With an organization
token and no event token it creates an organization activity with org crew, department and location
participants instead (areas and collaborators are refused), under the same rule at the organization,
departments and locations. activityTypeId is optional: a type of this organization, not archived and offered on
this calendar (from Activities_GetActivityTypeOptions); its role slots are created with the activity. With a type,
values and roleOccupants are written in the same create under Activities_SetActivityValue's and
Activities_SetActivityRoleOccupants' rules, before the gate decides the state; either without a type, or naming an
attribute or role the type does not place, is a 400 and creates nothing.
Request Body
| Field | Type | Required | Description |
|---|
| state | string | Optional | |
| name | string | Optional | |
| description | string | Optional | |
| startDateTime | date-time | Optional | |
| endDateTime | date-time | Optional | |
| isDateOnly | boolean | Optional | |
| exactLocation | string | Optional | |
| meetingLink | string | Optional | |
| isGlobal | boolean | Optional | |
| isAllDay | boolean | Optional | |
| areas | uuid[] | Optional | |
| crewMembers | AddActivityRequestActivityParticipant[] | Optional | |
| collaborators | AddActivityRequestActivityParticipant[] | Optional | |
| locations | uuid[] | Optional | |
| departments | AddActivityRequestActivityParticipant[] | Optional | |
| activityTypeId | uuid | Optional | |
| values | AddActivityRequestAttributeValueInput[] | Optional | |
| roleOccupants | AddActivityRequestRoleOccupantsInput[] | Optional | |
AddActivityRequestActivityParticipant
| Field | Type | Description |
|---|
| id | uuid | |
| pull | BaseServiceCrewPull | |
| role | string| null | |
| Field | Type | Description |
|---|
| attributeId | uuid | |
| value | JsonElement| null | |
| expiresOn | JsonElement| null | |
| itemExpiries | JsonElement| null | |
| Field | Type | Description |
|---|
| roleDefinitionId | uuid | |
| crewIds | uuid[]| null | |
| collaboratorRecordIds | uuid[]| null | |
| pulls | BaseServiceCrewPull[]| null | |
BaseServiceCrewPull
| Field | Type | Description |
|---|
| orgCrewId | uuid | |
| placementCollaboratorId | uuid| null | |