Docs
Quick Add Line
POST /Orders/{orderId}/quick-add-line
POST
/Orders/{orderId}/quick-add-lineCreates a new need on a procurement from a resource type and puts it on the order as a line in one step; use it for a need that was forgotten, and Orders_AddLineItems for needs that already exist. Takes the quantity, an optional group and optional attribute values; missing values do not block, the need is flagged incomplete instead. Refused while the order is Paid, or Abandoned or Canceled (reopen first); an internal order only once Canceled. Returns the new need's id. Procurement ids come from Procurements_GetProcurements and resource type ids from ResourceTypes_Get.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orderId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| procurementId | uuid | Optional | |
| resourceTypeId | uuid | Optional | |
| quantity | number | Optional | |
| lineItemGroupId | uuid | Optional | |
| attributeValues | QuickAddLineRequestAttributeValue[] | Optional |
QuickAddLineRequestAttributeValue
| Field | Type | Description |
|---|---|---|
| resourceAttributeId | uuid | |
| value | JsonElement| null |
Response
Type: uuid