Skip to main content
Skip to main content

Update Product

PUT 

/suppliers/products/:productIdentifier

Updates the product object.

If existing fields aren't included in the payload they won't be updated.

When updating nested relations (e.g. properties), you need to include the ID of each property in the Property object, e.g.

properties: [
{ id: 23, name: 'Height', value: '23cm' },
{ id: 24, name: 'Width', value: '24cm' },
]

  1. If the object doesn’t have an ID, it will be considered a create operation.
  2. If the object has an ID, it will update the property with that ID
  3. If an ID that was in the DB is not included in the payload, it will be considered deleted (e.g. if there was a property with ID 25, but it’s not included in the payload above, ID 25 will be deleted)

Request

Responses

OK