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
| Field | Type | Required | Description |
|---|
| procurementId | uuid | Required | |
| resourceId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| quantity | number | Optional | |
| areaId | uuid | Optional | |
| collaboratorId | uuid | Optional | |
| rateCardId | uuid | Optional | |
| owner | uuid | Optional | |
| clearOwner | boolean | Optional | |
| ruleSetIds | uuid[] | Optional | |
| attributeValues | UpdateProcurementResourceRequestAttributeValue[] | Optional | |
UpdateProcurementResourceRequestAttributeValue
| Field | Type | Description |
|---|
| resourceAttributeId | uuid | |
| value | JsonElement| null | |
Response
Type: UpdateProcurementResourceChangedOrderResponse[]
UpdateProcurementResourceChangedOrderResponse
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| versionNumber | integer | |