Docs
Update Resource
PUT /resources/{resourceId}
PUT
/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. |
| Organization token | x-Organization-Token | Optional | Run **Authorize Organization** in the Authorization folder. |
Updates a resource's fields and attribute values. Omitted settlement keeps the stored value.
Requires
ResourceInventory.Edit permission.Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| resourceId | Guid | Required | The org resource. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Name. |
| label | string | Optional | Label. |
| identifier | string | Optional | Serial or asset tag. |
| quantity | int? | Optional | Stock. |
| settlement | string | Optional | `OwnedCost` or `Invoiceable`. |
| attributeValues | array | Optional | `{ resourceAttributeId, value }`. Blanking a required Inventory-active attribute is refused. A value already blank before the request never blocks, so legacy records keep saving. A `Variant` or `Unit` blank is judged on the whole resulting set. |
Response
200 OK. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Invalid arguments, or the request blanks a required Inventory attribute ("A value is required for {names}."). |
| 404 | Resource not found. |