Docs

Assign Event Role Occupant

PUT /Events/{eventId}/roles/{eventRoleId}/occupant

PUT/Events/{eventId}/roles/{eventRoleId}/occupant

Puts a person in an event role slot. Send crewId for a role filled by crew or collaboratorId for a role filled by a collaborator, never both. A single-occupant role replaces its current occupant; a multi-occupant role adds to the others, and assigning someone already in the slot changes nothing. Assigning runs the event type's role effects for the new occupant. Needs event settings permission, or an organization token for an admin of the owning organization. The slot id comes from Events_GetEventRoles. For a draft event use Events_AssignDraftEventRoleOccupant. On a role linked to a need (its linkedNeed), a crew member is also reserved on that need at Planned, against orderId, a newOrder, or the one order the need is already on; it is refused when they have no crew resource of the need's type, the need has no dates, or no order can be chosen. newOrder takes a name, an optional Internal or External source, and optionally orderTypeId (an active order type from OrderTypes_GetOrderTypes) with values, intakeAnswers and roleOccupants as Orders_CreateOrder takes them; the order is created as Orders_CreateOrder creates one and commits with the reservation. Sending newOrder needs Order.Edit on the event, held there or lent from the organization. A vendor-supplied head (from an organization order) is refused: "Vendor-supplied heads can't fill a role."

Path Parameters

FieldTypeRequiredDescription
eventIduuidRequired
eventRoleIduuidRequired

Request Body

FieldTypeRequiredDescription
crewIduuidOptional
collaboratorIduuidOptional
placementCollaboratorIduuidOptional
orderIduuidOptional
newOrderAssignEventRoleOccupantRequestNewOrderInfoOptional

AssignEventRoleOccupantRequestNewOrderInfo

FieldTypeDescription
namestring| null
sourcestring| null
orderTypeIduuid| null
valuesAssignEventRoleOccupantRequestNewOrderInfoAttributeValueInput[]| null
intakeAnswersAssignEventRoleOccupantRequestNewOrderInfoIntakeAnswerInput[]| null
roleOccupantsAssignEventRoleOccupantRequestNewOrderInfoRoleOccupantsInput[]| null

AssignEventRoleOccupantRequestNewOrderInfoAttributeValueInput

FieldTypeDescription
attributeIduuid
valueJsonElement| null
expiresOnJsonElement| null
itemExpiriesJsonElement| null

AssignEventRoleOccupantRequestNewOrderInfoIntakeAnswerInput

FieldTypeDescription
questionIduuid
valueJsonElement| null

AssignEventRoleOccupantRequestNewOrderInfoRoleOccupantsInput

FieldTypeDescription
roleDefinitionIduuid
crewIdsuuid[]| null
collaboratorRecordIdsuuid[]| null
resourceIdsuuid[]| null
procurementResourceIdsuuid[]| null