Hanzo
OpenapiTaxonomy

Removes one empty category.

Removes one empty category. A category that still has taxa filed under it is refused with 409 and a count: deleting the label off a group must never…

DELETE /v1/taxonomy/categories/{id}

Addresshttps://api.hanzo.ai/v1/taxonomy/categories/{id}
MethodDELETE
Operationdelete_taxonomy_categories_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Removes one empty category. A category that still has taxa filed under it is refused with 409 and a count: deleting the label off a group must never silently take the products wearing it, and the alternative — orphan rows naming a category that no longer exists — is a catalogue that cannot be rendered. Move or delete its taxa first. An id no category holds is a 404.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the slug to act on, from the path.

Response

StatusBodyMeaning
200deletedok

200 body — 1 field.

FieldInTypeAlwaysDescription
deletedbodystringDeleted is the id that no longer exists.

Failure carries the platform error shape — see Errors.

Examples

hanzo taxonomy categories rm <id>

Taxonomy API · All Hanzo APIs · Interactive reference

How is this guide?

On this page