Insert or update a taxonomy (schema/hierarchy) in the database.
| Field | Type | Description |
|---|---|---|
taxonomy_name | str | Name of the taxonomy to upsert. |
new_taxonomy_name | Optional[str] | New name for the taxonomy (when updating). |
taxonomy_description | Optional[str] | Description of the taxonomy. |
taxonomy_data | Optional[Dict] | The taxonomy/hierarchy data structure. |
{ "taxonomy_name": str }{
"taxonomy_name": "document-categories",
"taxonomy_description": "Main document classification taxonomy",
"taxonomy_data": {
"invoice": ["purchase_invoice", "sales_invoice"],
"receipt": ["expense_receipt", "payment_receipt"]
}
}