PUT/resources/{resourceId}
Updates a resource's name, label, identifier, quantity, settlement and attribute values. Omitting settlement
keeps the stored value. Blanking a required Inventory-active attribute is refused, but a value that was
already blank never blocks, so legacy records keep saving; a Variant or Unit blank is judged on the whole
resulting set. To change the variant use Resources_ReassignResourceVariant. Needs the resource inventory
edit permission. On a temporary unit, changing quantity or settlement is refused with "This unit comes from
{order}. Change the order instead."; name, label, identifier and attributes stay editable. A vendor-supplied head's
name change is refused with "Rename this head on its crew record." (use Crew_UpdateCrewIdentity).
Path Parameters
| Field | Type | Required | Description |
|---|
| resourceId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| name | string | Optional | |
| label | string | Optional | |
| identifier | string | Optional | |
| quantity | integer | Optional | |
| settlement | string | Optional | |
| attributeValues | UpdateResourceRequestAttributeValue[] | Optional | |
UpdateResourceRequestAttributeValue
| Field | Type | Description |
|---|
| resourceAttributeId | uuid | |
| value | JsonElement| null | |