Skip to content

Create a category

POST
/api/content/management/categories
curl --request POST \
--url https://example.com/api/content/management/categories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "Electronics", "description": "example", "taxonomyId": "example", "parentId": "example", "customProperties": [ { "name": "example", "value": "example" } ] }'

Creates a new category within a taxonomy

Media typeapplication/json
object
name
required

Category name (required)

string
Example
Electronics
description

Category description

string
taxonomyId
required

Parent taxonomy ID (required)

string
parentId

Parent category ID (for nested categories)

string | null
customProperties

Custom properties

Array<object>
object
name
required
string
value

Category created successfully

Media typeapplication/json
object
id
required
string
Examplegenerated
{
"id": "example"
}

Invalid request