PATCH
/manager/popliste/{id}
curl \
--request PATCH 'https://domain.tld/api/v2/manager/popliste/{id}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"active":true,"products":[{"type":"string","price":42.0,"name":"string","description":"string","sticker":"string","images":[{"id_i18n_content":42,"lang":"en_GB","content":"Hello"}],"active":true,"external_id":"string","sku":"string","stock":42.0,"youtube":"string","image_instagram":"string","url":"string","lang":"string","stock_available":"fr_FR"}]}'
Request examples
{
"active": true,
"products": [
{
"type": "string",
"price": 42.0,
"name": "string",
"description": "string",
"sticker": "string",
"images": [
{
"id_i18n_content": 42,
"lang": "en_GB",
"content": "Hello"
}
],
"active": true,
"external_id": "string",
"sku": "string",
"stock": 42.0,
"youtube": "string",
"image_instagram": "string",
"url": "string",
"lang": "string",
"stock_available": "fr_FR"
}
]
}
Response examples (200)
{
"id_popliste": 42,
"active": true,
"products": [
{
"id_product": 42,
"name": "string",
"type": "string",
"discount_percentage": 42.0,
"price_catalog": 42,
"reference_unit_price": 42,
"sku": "string",
"youtube_id": "string",
"url": "string",
"description": "string",
"images": [
{
"id_i18n_content": 42,
"lang": "en_GB",
"content": "Hello"
}
],
"price": 42.0,
"stock": 42,
"stock_available": 42.0,
"old_image": "string"
}
]
}
Response examples (401)
{
"message": "Unauthorized."
}
Response examples (422)
{
"message": "field is required! (and 3 more error)",
"errors": {
"field": [
"Error message details here"
],
"additionalProperty1": [
"Error message details here"
],
"additionalProperty2": [
"Error message details here"
]
}
}