Update an Item

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.

create new item

You can now update the item purchase price by sending the updated item JSON object in a request.

create new item

Click on Try it out button and Execute . The response, if successful should be similar to the screenshot below.

create new item

If the operation fails, the error is returned in the response body.

You can also update the values for

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.