Docs

Set Activity Role Occupants

PUT /Activities/{activityId}/roles/{roleDefinitionId}/occupants

PUT/Activities/{activityId}/roles/{roleDefinitionId}/occupants

Sets who fills one role slot on the activity (set semantics: org crew ids from OrgCrew_GetCrew or collaborator record ids). On an event activity a person not on the event is pulled on first (crew through the one pull, a collaborator added pending). Each occupant becomes a participant the role controls. Archived, blacklisted and vendor-supplied people are refused; Single with two, the wrong filler kind and emptying a required slot are 400s. Adding or removing an event collaborator participant needs Activity.Edit for that collaborator, unless the caller holds Activity.Edit at the event. Returns 200 with no body. Needs Activity.Edit on the activity. A write that meets the gate of a never-activated Draft moves it to Tentative, so state and activatedAt may change.

Path Parameters

FieldTypeRequiredDescription
activityIduuidRequired
roleDefinitionIduuidRequired

Request Body

FieldTypeRequiredDescription
crewIdsuuid[]Optional
collaboratorRecordIdsuuid[]Optional
pullsBaseServiceCrewPull[]Optional

BaseServiceCrewPull

FieldTypeDescription
orgCrewIduuid
placementCollaboratorIduuid| null