Docs

Set Allocation

PUT /Orders/{orderId}/lines/{lineItemId}/allocations

PUT/Orders/{orderId}/lines/{lineItemId}/allocations

Sets a show's share of a Covering line for one need, updating the amount if the show already has one. Use eventId and procurementResourceId from Orders_GetOrderAllocations (unallocatedNeeds) or from the reserve response's coverings. A new amount needs the show to reserve the line's supply for that need. Returns warning when the line's allocations add up to more than its cost; the amount is saved anyway. Requires resource inventory edit.

Path Parameters

FieldTypeRequiredDescription
orderIduuidRequired
lineItemIduuidRequired

Request Body

FieldTypeRequiredDescription
eventIduuidOptional
procurementResourceIduuidOptional
amountnumberOptional
notestringOptional

Response

FieldTypeDescription
allocationIduuid
warningstring| null