Update Item
Endpoint: PUT /items/{id}
Authentication: Bearer Token (required)
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | UUID of the item to update |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token for authentication. Format: Bearer <token> |
| Content-Type | string | Yes | Must be application/json |
Request Body
The request body must be a JSON object with the following structure:
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Updated name of the item (e.g., "Raspberry Jam 375ml") |
| uom | string | Yes | Updated unit of measure (e.g., "nos") |
| valuationMethod | string | Yes | Inventory valuation method. Supported values: "MAVG" (Moving Average), "FIFO", "LIFO", "STANDARD" |
| maintainStock | boolean | Yes | Whether to track stock levels for this item |
| allowNegativeStock | boolean | Yes | Whether negative stock levels are allowed |
| companyIdString | string | Yes | UUID of the company that owns this item |
Example Request Body
{
"name": "Raspberry Jam 375ml",
"uom": "nos",
"valuationMethod": "MAVG",
"maintainStock": true,
"allowNegativeStock": false,
"companyIdString": "f5506f1d-3959-41cb-bd7b-c878c34f5a72"
}