Delete a category

delete

/content/management/api/v1.1/taxonomies/{id}/categories/{categoryId}

Only categories in a draft taxonomy can be deleted.

Request

Path Parameters
Query Parameters
Header Parameters
Back to Top

Response

Supported Media Types

204 Response

OK.

400 Response

Bad request.

403 Response

Forbidden.

404 Response

The requested resource was not found.

409 Response

The requested resource operation is temporarily unavailable

500 Response

Internal server error.
Back to Top

Examples

The following example shows how to delete a category and all its descendants by submitting a DELETE request on the REST resource using cURL.

curl -i -X DELETE -H 'X-Requested-With: XMLHttpRequest' 'https://host:port/content/management/api/v1.1/taxonomies/{id}/categories/{categoryId}?q=(status eq \"draft\")'

Example:

This deletes a category and all its descendents.
/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/6F81E244EB8D4E229CBF00A065009598?q=(status eq \"draft\")
Back to Top