Skip to main content

Add a picture to a product

POST 

/v1/materials/:type/:id/pictures

Stores a picture of the product. Send a form (multipart/form-data) with a JPEG, PNG or WebP of at most 5 MB in file. The planner, builder and configurator show it, so it is a public file. Send it in the size it is shown in, 1920 pixels are plenty: it is stored as it is. Customers see it at once, also with offers they have already.

A product holds a picture once. When it has the very same file already, the call answers 409 picture_already_on_material and names it in pictureId. Only a picture stored through the API is recognized. Requires the write:materials scope.

Request​

Responses​

The new picture.