Skip to main content
POST
/
admin
/
category
/
create
Add new category
curl --request POST \
  --url https://api.example.com/admin/category/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "parentCategoryID": null,
  "categoryName": "<string>",
  "languageID": 123,
  "isFeatured": true,
  "editionIDs": [
    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
parentCategoryID
integer<int32> | null
categoryName
string | null
languageID
integer<int32>
editionIDs
integer<int32>[] | null

Response

Success

success
boolean
data
unknown