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' },
]
- If the object doesn’t have an ID, it will be considered a create operation.
- If the object has an ID, it will update the property with that ID
- 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
- 200
- 403
- 404
- 422
OK
Authorization error
Resource not found it means that the provided product or variant identifier or any of the path parameters to amend is either not yours or present in the database.
Validation error