Skip to content

Adds a category​

POST
/api/categories/{type}

Authorizations​

api_key

Requests manipulating data need to supply a CSRF token

TypeAPI Key (header: X-CSRF-Token)

Parameters​

Path Parameters

type*
Typestring
Required
Pattern"\\w+"

Request Body​

application/json
JSON
{
"id": 0,
"name": "",
"subType": null
}

Responses​

Success

application/json
JSON
{
"id": 0,
"name": "",
"subType": null
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​

cURL
JavaScript
PHP
Python