Docs
Update Resource
PUT /procurements/{procurementId}/resources/{resourceId}
PUT
/procurements/{procurementId}/resources/{resourceId}Required Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Event token | x-Event-Token | Optional | Run **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
| Field | Type | Required | Description |
|---|---|---|---|
| procurementId | Guid | Required | The procurement. |
| resourceId | Guid | Required | The need (procurement resource). |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| quantity | decimal | Required | Quantity. A composite's must be a whole number of at least 1. |
| areaId | Guid? | Optional | Area context (non-scheduled needs). |
| collaboratorId | Guid? | Optional | Collaborator context (non-scheduled needs). |
| rateCardId | Guid? | Optional | One of the type's own cards. |
| ruleSetIds | Guid[] | Optional | Rule sets governing the need. `[]` for none. |
| owner | Guid? | Optional | Owning department. Omitted leaves it as stored. |
| clearOwner | bool | Optional | True clears `owner`. |
| attributeValues | array | Optional | `{ 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 Status | Description |
|---|---|
| 400 | Invalid arguments or a missing required variant value. |
| 404 | Procurement or need not found. |