Update Item Cost
Endpoint: PUT /items/{id}/cost
Authentication: Bearer Token (required)
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | UUID of the item to update cost for |
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 |
|---|---|---|---|
| itemCode | string | Yes | Unique code identifying the item (e.g., "008") |
| cost | string | Yes | New cost per unit as a string (e.g., "5") |
Example Request Body
{
"itemCode": "008",
"cost": "5"
}