Hanzo
OpenapiTaxonomy

Creates or replaces one category and returns it as stored.

Creates or replaces one category and returns it as stored.

PUT /v1/taxonomy/categories/{id}

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

Creates or replaces one category and returns it as stored. The id in the URL is the one it is filed under whatever the body says, so a category can never be written under a name it was not addressed by — which also makes create and replace the same act, and is why there is no POST beside this.

Platform SuperAdmin only: one catalogue serves every tenant, so an org admin who could rename a category would rename it for all of them.

Request

6 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the category slug to write, from the path.
brandsbodystring[]Brands are the brands whose console shows it.
idbodystringID is the category slug to write, from the path.
labelbodystringLabel is the display name.
orderbodyintegerOrder is where the category sits among its siblings, ascending.
summarybodystringSummary is the one line describing what the category groups.

Response

StatusBodyMeaning
200Categoryok

200 body — 19 fields.

FieldInTypeAlwaysDescription
brandsbodystring[]Brands are the brands whose console shows this category.
idbodystringID is the stable slug this category is addressed by, e.g.
labelbodystringLabel is the display name, e.g.
orderbodyintegerOrder is where the category sits among its siblings, ascending.
ownerbodystringOwner is the org this category belongs to: the platform's own org for a category every tenant sees, or your org for one you added.
summarybodystringSummary is the one line describing what the category groups, shown as the header copy on its landing page.
taxabodyTaxon[]Taxa are the products filed under this category, in display order.
taxa[].brandsbodystring[]Brands are the brands whose console shows this taxon.
taxa[].categorybodystringCategory is the id of the category this taxon is filed under.
taxa[].descriptionbodystringDescription is the one line shown beneath the name in the catalogue and nav.
taxa[].hrefbodystringHref is the absolute URL an external product launches, for the taxa that genuinely live at their own domain.
taxa[].iconbodystringIcon names the icon the surface renders, e.g.
taxa[].idbodystringID is the stable slug this taxon is addressed by, e.g.
taxa[].namebodystringName is the display name, e.g.
taxa[].orderbodyintegerOrder is where the taxon sits within its category, ascending.
taxa[].ownerbodystringOwner is the org this product belongs to: the platform's own org for one every tenant sees, or your org for one you added.
taxa[].publishedbodybooleanPublished is whether the taxon is shown.
taxa[].routebodystringRoute is the in-console path this taxon opens, e.g.
taxa[].tagsbodystring[]Tags are free-form labels for search and grouping across categories.

Failure carries the platform error shape — see Errors.

Examples

hanzo taxonomy categories set <id>

Taxonomy API · All Hanzo APIs · Interactive reference

How is this guide?

On this page