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.
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.
You can now update the supplier phone number by sending the updated supplier 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.