curl --request PUT \
--url https://api.dooki.com.br/v2/{alias}/catalog/categories/{id} \
--header 'Content-Type: application/json' \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>' \
--data '{
"active": true,
"name": "Categoria",
"parent_id": 123,
"home": true,
"featured": false,
"price_factor": 1,
"slug": "categoria",
"seo_title": "Título SEO para categoria",
"seo_keywords": "palavras, chave, SEO",
"seo_description": "Descrição SEO",
"external_url": "https://www.link.com",
"canonical_url": "https://www.link.com",
"order": 1,
"sort_by": "relevance",
"banners_ids": [
123
]
}'
{
"id": 123,
"merchant_id": 123,
"parent_id": 123,
"active": true,
"featured": true,
"price_factor": 123,
"total_banners": 0,
"sort_by": "<string>",
"name": "<string>",
"slug": "<string>",
"url": "<string>",
"description": "<string>",
"external_url": "<string>",
"canonical_url": "<string>",
"order": 123,
"is_parent": true,
"url_path": "<string>",
"slug_path": "<string>",
"filters_values_ids": [
123
],
"category_cover": "<string>",
"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"
}
}
Atualiza os detalhes de uma categoria específica
curl --request PUT \
--url https://api.dooki.com.br/v2/{alias}/catalog/categories/{id} \
--header 'Content-Type: application/json' \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>' \
--data '{
"active": true,
"name": "Categoria",
"parent_id": 123,
"home": true,
"featured": false,
"price_factor": 1,
"slug": "categoria",
"seo_title": "Título SEO para categoria",
"seo_keywords": "palavras, chave, SEO",
"seo_description": "Descrição SEO",
"external_url": "https://www.link.com",
"canonical_url": "https://www.link.com",
"order": 1,
"sort_by": "relevance",
"banners_ids": [
123
]
}'
{
"id": 123,
"merchant_id": 123,
"parent_id": 123,
"active": true,
"featured": true,
"price_factor": 123,
"total_banners": 0,
"sort_by": "<string>",
"name": "<string>",
"slug": "<string>",
"url": "<string>",
"description": "<string>",
"external_url": "<string>",
"canonical_url": "<string>",
"order": 123,
"is_parent": true,
"url_path": "<string>",
"slug_path": "<string>",
"filters_values_ids": [
123
],
"category_cover": "<string>",
"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"
}
}
Representa uma requisição para criar categorias
Categoria atualizada com sucesso
Was this page helpful?