Using this endpoint you can modify product image attributes and also upload a new image and replace the existing one.
This is an asynchronous request, see how Asynchronous requests work on our developer's portal.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/products/{guid}/images/{gallery}/source
- https://api.myshoptet.comhttps://api.myshoptet.com/api/products/{guid}/images/{gallery}/source
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X PATCH \
https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/products/95b84d4b-7481-11e8-8216-002590dad85e/images/shop/source \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
-d '{
"data": {
"images": [
{
"name": "127.png",
"sourceUrl": "https://www.your-eshop.com/cokolada.jpg",
"priority": 1,
"description": "Dobrá čokoláda"
}
]
}
}'Response
{ "data": { "jobId": "ad24xod" }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }