Get a product photo
Returns the image in slot `photoNumber` as raw bytes with its own content type. `width`, `height`, `quality` and `format` re-encode the stored image on the fly, so a client can request exactly the thumbnail it needs. 404 when the slot is empty. Requires `Permissions.Product.View`.
BearerAuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
productId*integerint32photoNumber?integerint32width?integer|nullheight?integer|nullquality?integer|nullformat?response?unknownapplication/octet-streamcurl -X GET 'https://<your-instance>/api/products/0/photo' \ -H 'Authorization: Bearer <access-token>'nullList a product's read-only fields GET
Returns the fields of this product that the instance's configuration will not let you change, so a client can disable them before the user edits anything. Which fields are locked is instance-specific. Requires `Permissions.Product.View`.
Upload a product photo POST
Stores the image in the requested photo slot, replacing whatever that slot held. Requires `Permissions.Product.Update`.