Skip to main content
POST
https://api.centralcart.com.br
/
v1
/
app
/
category
Create Category
curl --request POST \
  --url https://api.centralcart.com.br/v1/app/category \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "parent_id": 123,
  "hide_category": true,
  "hide_subcategory": true
}
'
{
  "id": 1,
  "store_id": 1,
  "name": "VIP",
  "slug": "vip",
  "parent_id": null,
  "position": 1,
  "hide_category": false,
  "hide_subcategory": false,
  "image": null,
  "banner": null,
  "created_at": "2024-01-31T16:03:28.000-03:00",
  "updated_at": "2024-01-31T16:03:28.000-03:00"
}
name
string
required
Nome da categoria
parent_id
number
ID da categoria pai (para criar uma subcategoria)
hide_category
boolean
Define se a categoria está oculta
hide_subcategory
boolean
Define se as subcategorias estão ocultas
{
  "id": 1,
  "store_id": 1,
  "name": "VIP",
  "slug": "vip",
  "parent_id": null,
  "position": 1,
  "hide_category": false,
  "hide_subcategory": false,
  "image": null,
  "banner": null,
  "created_at": "2024-01-31T16:03:28.000-03:00",
  "updated_at": "2024-01-31T16:03:28.000-03:00"
}