Skip to main content
POST
/
open-api
/
catalog
/
category
Criar categoria
curl --request POST \
  --url https://api.mginex.com/open-api/catalog/category \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "image": "<string>",
  "banner": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

Authorization
string
header
required

Token de API gerado no painel da Mginex em Configurações > Open API

Body

application/json
title
string
required
Required string length: 1 - 255
image
string | null
banner
string | null

Response

200 - application/json

Categoria criada com sucesso

success
boolean
data
object