Skip to main content
POST
/
category
/
create
Adds a new category, if parent category id is null then the category inserted will be parent, if not, then it's a child category.
curl --request POST \
  --url https://api.example.com/category/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "categoryText": "<string>",
  "languageID": 123,
  "parentCategoryId": 123
}
'
{
  "success": true,
  "data": "<unknown>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Input model to add a new child category

categoryText
string
required
Minimum string length: 1
languageID
integer<int32>
required

Language ID for the language that the category is being created in

parentCategoryId
integer<int32> | null

If parent category is null, then this is a root category

Response

Success

success
boolean
data
unknown