Create a category
POST
/api/content/management/categories
const url = 'https://example.com/api/content/management/categories';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"Electronics","description":"example","taxonomyId":"example","parentId":"example","customProperties":[{"name":"example","value":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Media typeapplication/json
object
name
required
Category name (required)
string
Example
Electronicsdescription
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
Responses
Section titled “Responses”Category created successfully
Media typeapplication/json
object
id
required
string
Examplegenerated
{ "id": "example"}Invalid request