This method set given products (minimum 0, maximum 50), defined by product variant code to the bundle of products (product-set). Product defined in url by guid, must be set as type : product-set. When successfully saved, complete list of products in the set is returned in response. It is not allowed to add a product of the product-set type to an existing product set.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/products/{guid}/set
- https://api.myshoptet.comhttps://api.myshoptet.com/api/products/{guid}/set
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X PUT \
https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/products/93bc0dbe-7481-11e8-8216-002590dad85e/set \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
-d '{
"data": {
"setItems": [
{
"code": "0008",
"amount": "1.000"
}
]
}
}'Response
{ "data": { "items": [ … ] }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }