Docs

Set Order Role Occupants

PUT /Orders/{orderId}/roles/{roleDefinitionId}/occupants

PUT/Orders/{orderId}/roles/{roleDefinitionId}/occupants

Sets who or what fills one of the order's roles (set, not append). Send only the list matching the role: crewIds for a Crew role, collaboratorRecordIds for a Collaborator role, resourceIds for a Resource role, procurementResourceIds for a procured role. A need must be of the role's resource type, in the order's scope (the order's event, or an organization need for an org order) and of quantity 1. A resource must be of the type (any live organization resource, event order or org order). A crew member or collaborator record is any of the organization's, on the event or not, and filling a role never adds them to the event; on an event order, naming one who is not on it needs the reach the pickers need (crew: Crew.View at the organization or on your roster; a collaborator record: Collaborator.View at the organization) or is a 403. On an event order, fillingEventRoleId binds a Crew or Collaborator role to a Single event role (Events_GetEventRoles); null with no lists unbinds. Emptying a required role is refused once the order has left Draft. The candidates come from Orders_GetOrderRoleCandidates. Needs Order.Edit; the order's vendor writes only visible and editable roles, with values already on the event.

Path Parameters

FieldTypeRequiredDescription
orderIduuidRequired
roleDefinitionIduuidRequired

Request Body

FieldTypeRequiredDescription
crewIdsuuid[]Optional
collaboratorRecordIdsuuid[]Optional
resourceIdsuuid[]Optional
procurementResourceIdsuuid[]Optional
fillingEventRoleIduuidOptional