POST/Organizations/{orgId}/order-lines
Puts several resource needs onto one order in a single call: send to an existing order with orderId, or
create a new one with newOrder, never both. newOrder takes a name and 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 new order and its lines commit
together, and it is created as Orders_CreateOrder creates one (its templates and creation effects run). Each
line is a procurementResourceId from Organizations_GetResourceNeeds and a quantity above zero. Every
need must be on the same event, and a need already on the order has its quantity increased. Creates no
reservation. Needs Order.Edit on that event, held there or at the organization (which lends it to every
active event); organization basic access alone is refused.
Path Parameters
| Field | Type | Required | Description |
|---|
| orgId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| lines | AddOrganizationOrderLinesRequestLine[] | Optional | |
| orderId | uuid | Optional | |
| newOrder | AddOrganizationOrderLinesRequestNewOrderInfo | Optional | |
AddOrganizationOrderLinesRequestLine
| Field | Type | Description |
|---|
| procurementResourceId | uuid | |
| quantity | number | |
AddOrganizationOrderLinesRequestNewOrderInfo
| Field | Type | Description |
|---|
| name | string| null | |
| source | string| null | |
| orderTypeId | uuid| null | |
| values | AddOrganizationOrderLinesRequestNewOrderInfoAttributeValueInput[]| null | |
| intakeAnswers | AddOrganizationOrderLinesRequestNewOrderInfoIntakeAnswerInput[]| null | |
| roleOccupants | AddOrganizationOrderLinesRequestNewOrderInfoRoleOccupantsInput[]| 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 | |