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.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Updates a need. attributeValues and ruleSetIds are full replacements.

Event scoping: This endpoint does not include {eventId} in the URL. The event is determined automatically from your x-Event-Token.

Path Parameters

FieldTypeRequiredDescription
procurementIdGuidRequiredThe procurement.
resourceIdGuidRequiredThe need (procurement resource).

Request Body

FieldTypeRequiredDescription
quantitydecimalRequiredQuantity. A composite's must be a whole number of at least 1.
areaIdGuid?OptionalArea context (non-scheduled needs).
collaboratorIdGuid?OptionalCollaborator context (non-scheduled needs).
rateCardIdGuid?OptionalOne of the type's own cards.
ruleSetIdsGuid[]OptionalRule sets governing the need. `[]` for none.
ownerGuid?OptionalOwning department. Omitted leaves it as stored.
clearOwnerboolOptionalTrue clears `owner`.
attributeValuesarrayOptional`{ resourceAttributeId, value }`: values for attributes placed on the type and active on Procurement. A `Select` value is the option id. Full replacement.

Response

200 OK with [{ id, name, versionNumber }]: orders a revision was minted on because this edit changed what a sent order covers. Empty when none.

Error Codes

HTTP StatusDescription
400Invalid arguments or a missing required variant value.
404Procurement or need not found.