Skip to main content
POST
/
v1
/
api
/
categories
Create a new parcel category
curl --request POST \
  --url http://localhost:3091/v1/api/categories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": 123,
  "code": "<string>",
  "name": "<string>"
}

Authorizations

Authorization
string
header
required

JWT access token from POST /v1/api/auth/login

Body

application/json
name
string

Response

Category created

id
integer<int32>
code
string
name
string