Category Trees{treeId}Categories{identifier}
Update Category in Tree
Creates or updates a category within a specific tree. Returns 201 if created, 200 if updated.
Authorization<token>
API key authentication using Bearer token format. Use: Bearer
In: header
Path Parameters
treeIdstring
Category tree identifier
identifierstring
Category identifier
Category data
displayName?string
Full hierarchical display name (e.g., "Electronics > Phones > iPhone"). If omitted, defaults to name.
name?string
Name of the category (required for create)
parentId?string
Parent category identifier within the same tree
Response Body
curl -X PATCH "https://api.emfas.ai/v1/category-trees/string/categories/string" \
-H "Content-Type: application/json" \
-d '{}'{
"result": {
"displayName": "Electronics",
"identifier": "electronics",
"name": "Electronics",
"parentId": "parent-cat-123",
"treeId": "my-tree-123"
}
}{
"result": {
"displayName": "Electronics",
"identifier": "electronics",
"name": "Electronics",
"parentId": "parent-cat-123",
"treeId": "my-tree-123"
}
}{
"error": "Internal server error"
}{
"error": "Internal server error"
}{
"error": "Internal server error"
}{
"error": "Internal server error"
}