Docs

Update Resource

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

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

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.

Updates the quantity, properties, and sub-assets of an existing procurement resource. The properties and subAssets arrays are full replacements.

Path Parameters

FieldTypeRequiredDescription
procurementIdGuidRequiredThe ID of the procurement. Replace `{{procurementId}}` in the URL.
resourceIdGuidRequiredThe ID of the resource to update. Replace `{{resourceId}}` in the URL.

Request Body

FieldTypeRequiredDescription
quantityintRequiredUpdated quantity.
propertiesProp[]OptionalFull replacement list of asset-level properties (`{ templatePropertyId, value }`). Pass `[]` to clear.
subAssetsSubAsset[]OptionalFull replacement list of sub-assets, each with their own `properties`. Pass `[]` to clear.

Response

Returns 200 OK with an empty body on success.