Skip to content

Product images update

Request

Using this endpoint you can modify product images attributes, such as description and priority (order). Maximum of 100 images can be sent at once.

Security
shoptetAccessToken or shoptetPrivateApiToken
Path
guidstringrequired

Product's guid

Example:95b84d4b-7481-11e8-8216-002590dad85e
gallerystringrequired

Gallery identifier - use shop for normal and shop360 for 360 photos

Example:shop
Headers
Content-Typestringrequired
Default:"application/json"
Bodyapplication/json
dataobjectrequired
curl -i -X PATCH \
  https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/products/95b84d4b-7481-11e8-8216-002590dad85e/images/shop \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
  -d '{
    "data": {
      "images": [
        {
          "name": "127.png",
          "priority": 100,
          "description": "Dobrá čokoláda"
        }
      ]
    }
  }'

Responses

OK

Bodyapplication/json
dataobjectrequired
errorsArray of objects or null(Errors)required
metadataobject(Metadata)required
Response
{ "data": { "images": [] }, "errors": [ {} ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }