Dokumentation Entwickler API

Product image Ressource

Aktualisiert am 16.03.2017

Product image Ressource

Bulk Create Or Update

PUT /api/products/1.json

  • PUT /api/products/1.json will create or update the product images from the parameters passed.

Product image Ressource

{
"product": {
"image_url_1": "http://placehold.it/300x200/F0F0F0/0287CD&text=Image%201",
"image_url_2": "http://placehold.it/300x200/F0F0F0/0287CD&text=Image%202",
"image_url_3": "http://placehold.it/300x200/F0F0F0/0287CD&text=Image%203",
image_url_15": "http://placehold.it/300x200/F0F0F0/0287CD&text=Image%2015
}
}

Product image Ressource

See the Get Product endpoint for more info about the output.

Delete Product Images

DELETE /api/products/1/product_images/100.json

  • DELETE /api/products/1/product_images/100.json will delete the product image specified and return 200 OK if that was successful.

An alternative via PUT:

  • PUT /api/products/1.json will delete the product images from the parameters passed.

Product image Ressource

{
"product": {
"image_url_1": null,
"image_url_2": null,
"image_url_3": null,
"image_url_15": null
}
}

Product image Ressource

See the Get Product endpoint for more info about the output.