Hanzo
OpenapiTaxonomy

Creates or replaces one product and returns it as stored.

Creates or replaces one product and returns it as stored. The id in the URL is the one it is filed under whatever the body says.

PUT /v1/taxonomy/taxa/{id}

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

Creates or replaces one product and returns it as stored. The id in the URL is the one it is filed under whatever the body says. The category must already exist — a taxon naming a category that does not is refused with 400 rather than stored where nothing can render it.

A taxon opens exactly one way: route for a product the console renders itself, or href for one that genuinely lives at its own domain. Giving both, or neither, is refused.

Platform SuperAdmin only.

Request

12 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the taxon slug to write, from the path.
brandsbodystring[]Brands are the brands whose console shows it.
categorybodystringCategory is the id of an EXISTING category to file it under.
descriptionbodystringDescription is the one line shown beneath the name.
hrefbodystringHref is the absolute URL an external product launches.
iconbodystringIcon names the icon the surface renders, e.g.
idbodystringID is the taxon slug to write, from the path.
namebodystringName is the display name.
orderbodyintegerOrder is where it sits within its category, ascending.
publishedbodybooleanPublished is whether it is shown.
routebodystringRoute is the in-console path it opens, e.g.
tagsbodystring[]Tags are free-form labels for search and grouping across categories.

Response

StatusBodyMeaning
200Taxonok

200 body — 12 fields.

FieldInTypeAlwaysDescription
brandsbodystring[]Brands are the brands whose console shows this taxon.
categorybodystringCategory is the id of the category this taxon is filed under.
descriptionbodystringDescription is the one line shown beneath the name in the catalogue and nav.
hrefbodystringHref is the absolute URL an external product launches, for the taxa that genuinely live at their own domain.
iconbodystringIcon names the icon the surface renders, e.g.
idbodystringID is the stable slug this taxon is addressed by, e.g.
namebodystringName is the display name, e.g.
orderbodyintegerOrder is where the taxon sits within its category, ascending.
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.
publishedbodybooleanPublished is whether the taxon is shown.
routebodystringRoute is the in-console path this taxon opens, e.g.
tagsbodystring[]Tags are free-form labels for search and grouping across categories.

Failure carries the platform error shape — see Errors.

Examples

hanzo taxonomy taxa set <id>

Taxonomy API · All Hanzo APIs · Interactive reference

How is this guide?

On this page