curl --request PUT \
--url https://api.dooki.com.br/v2/{alias}/catalog/flags/{id} \
--header 'Content-Type: application/json' \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>' \
--data '{
"name": "Dia dos Namorados",
"active": true,
"is_visible": true,
"image_url": "https://example.com/image.png",
"text_color": "#FFFFFF",
"background_color": "#000000"
}'
{
"id": 123,
"active": true,
"is_visible": true,
"name": "Coleção 2017",
"slug": "colecao-2017",
"total_products": 123,
"text_color": "#ffffff",
"background_color": "#000000",
"image_url": "https://image.com/selo.gif",
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"include": {
"products_ids": "[987, 654, 456, 321, 123]",
"brands_ids": "[]",
"collections_ids": "[]",
"categories_ids": "[]"
},
"exclude": {
"products_ids": "[123, 321]",
"brands_ids": "[]",
"collections_ids": "[]",
"categories_ids": "[]"
},
"include_ids": "[987, 654, 456, 321, 123]",
"exclude_ids": "[123, 321]"
}
Atualiza os detalhes de um selo específico do catálogo
curl --request PUT \
--url https://api.dooki.com.br/v2/{alias}/catalog/flags/{id} \
--header 'Content-Type: application/json' \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>' \
--data '{
"name": "Dia dos Namorados",
"active": true,
"is_visible": true,
"image_url": "https://example.com/image.png",
"text_color": "#FFFFFF",
"background_color": "#000000"
}'
{
"id": 123,
"active": true,
"is_visible": true,
"name": "Coleção 2017",
"slug": "colecao-2017",
"total_products": 123,
"text_color": "#ffffff",
"background_color": "#000000",
"image_url": "https://image.com/selo.gif",
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"include": {
"products_ids": "[987, 654, 456, 321, 123]",
"brands_ids": "[]",
"collections_ids": "[]",
"categories_ids": "[]"
},
"exclude": {
"products_ids": "[123, 321]",
"brands_ids": "[]",
"collections_ids": "[]",
"categories_ids": "[]"
},
"include_ids": "[987, 654, 456, 321, 123]",
"exclude_ids": "[123, 321]"
}
Dados para criação ou atualização de um valor de um selo
Response da criação do selo
Representa as restrições de inclusão e exclusão para itens específicos
Was this page helpful?