Docs

Update Procurement Resource

PUT /procurements/{procurementId}/resources/{resourceId}

PUT/procurements/{procurementId}/resources/{resourceId}

Updates a need's quantity, area, collaborator, rate card, rule sets, owner and attribute values. ruleSetIds is a full replacement; attributeValues sets each value sent and ignores one that equals the stored value, so an ordered need accepts its unchanged values. A changed attribute value reaches every clone of the need and is refused (400) when the need or any clone it would change has order lines. clearOwner true clears the owner (an omitted owner is left as stored). A composite's quantity must be a whole number of at least 1. Returns the orders whose sent revision is now out of date because the edit changed what they cover (empty when none); no revision is created. An organization-level need (org token, resource inventory edit) takes quantity, owner and attributeValues; lowering the quantity below the units already filled is refused, and it returns an empty list.

Path Parameters

FieldTypeRequiredDescription
procurementIduuidRequired
resourceIduuidRequired

Request Body

FieldTypeRequiredDescription
quantitynumberOptional
areaIduuidOptional
collaboratorIduuidOptional
rateCardIduuidOptional
owneruuidOptional
clearOwnerbooleanOptional
ruleSetIdsuuid[]Optional
attributeValuesUpdateProcurementResourceRequestAttributeValue[]Optional

UpdateProcurementResourceRequestAttributeValue

FieldTypeDescription
resourceAttributeIduuid
valueJsonElement| null

Response

Type: UpdateProcurementResourceChangedOrderResponse[]

UpdateProcurementResourceChangedOrderResponse

FieldTypeDescription
iduuid
namestring| null
versionNumberinteger