Skala
Categories

Create a new category

Adds a new category record to the database.

POST
/api/categories

Adds a new category record to the database.

AuthorizationBearer <token>

In: header

Request Body

application/json

The new Category resource

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://api.skalasuite.com/api/categories" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "id": 0,
  "name": "string",
  "parent": {},
  "children": [
    {}
  ],
  "lft": 0,
  "lvl": 0,
  "rgt": 0,
  "root": {},
  "isActive": true,
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}
Empty
Empty