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
| Field | Type | Required | Description |
|---|
| eventId | uuid | Required | |
| eventRoleId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| crewId | uuid | Optional | |
| collaboratorId | uuid | Optional | |
| placementCollaboratorId | uuid | Optional | |
| orderId | uuid | Optional | |
| newOrder | AssignEventRoleOccupantRequestNewOrderInfo | Optional | |
AssignEventRoleOccupantRequestNewOrderInfo
| Field | Type | Description |
|---|
| name | string| null | |
| source | string| null | |
| orderTypeId | uuid| null | |
| values | AssignEventRoleOccupantRequestNewOrderInfoAttributeValueInput[]| null | |
| intakeAnswers | AssignEventRoleOccupantRequestNewOrderInfoIntakeAnswerInput[]| null | |
| roleOccupants | AssignEventRoleOccupantRequestNewOrderInfoRoleOccupantsInput[]| null | |
| Field | Type | Description |
|---|
| attributeId | uuid | |
| value | JsonElement| null | |
| expiresOn | JsonElement| null | |
| itemExpiries | JsonElement| null | |
| Field | Type | Description |
|---|
| questionId | uuid | |
| value | JsonElement| null | |
| Field | Type | Description |
|---|
| roleDefinitionId | uuid | |
| crewIds | uuid[]| null | |
| collaboratorRecordIds | uuid[]| null | |
| resourceIds | uuid[]| null | |
| procurementResourceIds | uuid[]| null | |