ReferenceProduct
Upload a product photo
Stores the image in the requested photo slot, replacing whatever that slot held. Requires `Permissions.Product.Update`.
POST
Bearerheader
AuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
productId*integerFormat
int32application/json- body
fileName?string|nullimageFormat?photoData*stringphotoNumber?integerFormat
int32productId?integerFormat
int32quality?integer|nullresponse?unknownapplication/octet-streamcurl -X POST 'https://<your-instance>/api/products/0/photo' \ -H 'Authorization: Bearer <access-token>' \ -H 'Content-Type: application/json' \ -d '{ "photoData": "string"}'nullGet a product photo GET
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`.
Delete a product photo DELETE
Empties the photo slot given by `photoNumber` and returns 204. Requires `Permissions.Product.Update`.