Skip to main content

Update Item Cost

Endpoint: PUT /items/{id}/cost

Authentication: Bearer Token (required)

Path Parameters

NameTypeRequiredDescription
idstringYesUUID of the item to update cost for

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token for authentication. Format: Bearer <token>
Content-TypestringYesMust be application/json

Request Body

The request body must be a JSON object with the following structure:

FieldTypeRequiredDescription
itemCodestringYesUnique code identifying the item (e.g., "008")
coststringYesNew cost per unit as a string (e.g., "5")

Example Request Body

{
"itemCode": "008",
"cost": "5"
}