Sometimes you need to make updates to the values of an item's properties or features. For example, a change in an item's purchase price should be updated on Heims' database.
Click on the PUT /api/items/{itemId}
dropdown and expand its request details.
You need the value for the itemId parameter. This is the Id of the Item's record on the database. Usually, its specified by the _id
property.
You can now update the item purchase price by sending the updated item JSON object in a request.
Click on Try it out button and Execute . The response, if successful should be similar to the screenshot below.
If the operation fails, the error is returned in the response body.
You can also update the values for
xxxxxxxxxx
itemName: string
manufacturerName: string
itemDescription: string
reorderLevel?: number
sellingPrice?: number
itemPurchaseRate?: number
itemPackaging:string
itemForm: string
itemSize: number
When updating suppliers
, groupedItems
, itemTags
or itemCategory
array, the API will set the value sent in the request, replacing the exisiting array value on the database.