Taxonomies
These API’s are for creating, accessing, and updating taxonomies inside of CM Box.
POST /api/content/management/taxonomies
Creates a new taxonomy.
Headers
Content-Type: application/jsonRequest Body
name - Name of the taxonomydescription - Description of the taxonomyExample Request
{ "name": "New Taxonomy", "description": "This is an example taxonomy",}Response
200 - OK on success
Example Response
{ "id": "TAXONOMY_8A186CFB394945D79780E075CA51CC6B"}GET /api/content/management/taxonomies
Retrieves a list of all taxonomies.
Response
200 - OK on success
Example Response
{ "count": 1, "items": [ { "name": "New Taxonomy", "displayName": "", "apiName": "newTaxonomy", "description": "This is an example taxonomy", "shortName": "new", "id": "TAXONOMY_8A186CFB394945D79780E075CA51CC6B", "properties": {} } ]}GET /api/content/management/taxonomies/:id
Retrieves the taxonomy with the provided Id.
Template Params
id - Taxonomy IdResponse
200 - OK on success
Example Response
{ "name": "Example", "displayName": "", "apiName": "example", "description": "test", "shortName": "exa", "id": "TAXONOMY_DBDC8749CF754C88B06B0EC0618F5156", "properties": {}}PUT /api/content/management/:id
Update an existing taxonomy.
Headers
Content-Type: application/jsonTemplate Params
id - Taxonomy IdRequest Body
name - Name of the taxonomydescription - Description of the taxonomyproperties - Object of custom properties listed key-value pairsshortName - The prefix for all categories in this taxonomyExample Request
Content-Type: application/json
{ "name": "Updated Taxonomy", "description": "This is an updated taxonomy", "shortName": "newer", "properties": { "example": "update" }}Response
200 - OK on success
Example Response
{ "name": "Updated Taxonomy", "displayName": "", "apiName": "newTaxonomy", "description": "This is an updated taxonomy", "shortName": "newer", "id": "TAXONOMY_8A186CFB394945D79780E075CA51CC6B", "properties": { "example": "update" }}DELETE /api/content/management/:id
Delete an taxonomy with the specified Id.
Template Params
id - Id of the requested taxonomyResponse
200 - OK on success
Example Response
1