Set the manufacturer photo order for a product
POST/products/set-manufacturer-photo-order
Set your organisation's preferred display order for a product's photos. The order is a list of
media item IDs, given in the sequence you want them displayed; media items not included keep the
Medipim default order and are appended after the ones you list. This order is reflected in the
Medipim platform and is exposed on each photo as manufacturerDisplayOrder when reading the product.
Send an empty order (or omit it) to clear a previously-set order and revert to the Medipim default.
The product can be identified in two ways:
id— the Medipim product ID (e.g."M123456789").product— either a Medipim product ID string, or an object with a single unique identifier field as key (e.g.{"cnk": "1234567"}). See the field glossary for available identifier fields.
Exactly one of id or product must be provided. Only organisation API connections may set a
manufacturer photo order, and only for products their organisation is linked to.
Request
Responses
- 200
- 401
- 403
- 404
- 422
Successful operation. Returns the product with the updated photo order applied.
Unauthorized
Forbidden
Product not found.
Unprocessable Entity