Update a Supplier

If you need to make updates to the values of an Supplier's data. For example, a change in a supplier's contact email or phone number should be updated on Heims' database.

Click on the PUT /api/suppliers/{supplierId} dropdown and expand its request details. create new supplier

You need the value for the supplierId parameter. This is the Id of the Supplier's record on the database. Usually, its specified by the _id property.

create new supplier

You can now update the supplier phone number by sending the updated supplier JSON object in a request.

create new supplier

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

create new supplier

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