XPipe LogoXPipe Documentation

Add category

Creates a new empty category in the vault. New categories always need a parent as it's not allowed to create root categories.

POST
/category/add

Authorization

bearerAuth
AuthorizationBearer <token>

The bearer token used is the session token that you receive from the handshake exchange.

In: header

Request Body

application/json

name*string

The category name

parent*string

The parent category uuid to put the new category in

Response Body

application/json

application/json

application/json

curl -X POST "http://localhost:21721/category/add" \  -H "Content-Type: application/json" \  -d '{    "name": "my category",    "parent": "97458c07-75c0-4f9d-a06e-92d8cdf67c40"  }'
{
  "category": "36ad9716-a209-4f7f-9814-078d3349280c"
}
{
  "message": "string"
}
Empty
Empty
{
  "error": {
    "cause": {},
    "stackTrace": [],
    "suppressed": [],
    "localizedMessage": "string",
    "message": "string"
  }
}