Delete category in tree
Deletes a category. Categories connected to an external source cannot be deleted via the API — disconnect the source first.
Authorization<token>
API key authentication using Bearer token format. Use: Bearer
In: header
Path Parameters
treeIdstring
Category tree identifier
identifierstring
Category identifier
Query Parameters
mode?string
Descendant handling when the category has children. When omitted, the delete is refused.
Value in
"cascade" | "promote_children"Response Body
curl -X DELETE "https://api.emfas.ai/v1/category-trees/string/categories/string?mode=cascade"Empty
{
"error": "Internal server error"
}{
"error": "Internal server error"
}{
"error": "Internal server error"
}{
"error": "Internal server error"
}