Hanzo
OpenapiCommerce

Upsert a listing override

Decodes the body over the existing listing when the key is present, so fields it omits keep their stored values, and builds the listing from the body…

PUT /v1/commerce/store/{storeid}/listing/{key}

Addresshttps://api.hanzo.ai/v1/commerce/store/{storeid}/listing/{key}
MethodPUT
Operationput_commerce_store_by_storeid_listing_by_key
AuthAuthorization: Bearer $HANZO_API_KEY

Decodes the body over the existing listing when the key is present, so fields it omits keep their stored values, and builds the listing from the body alone when the key is new. Answers 200 when it replaced something and 201 with a Location header when it created it; either way the body is the store's entire listing map, not the single entry. Unlike creation, this path does NOT restamp the listing's currency from the store. Admin-gated, with the store resolved inside the caller org's namespace.

Request

2 fields.

FieldInTypeRequiredDescription
storeidpathstringyes
keypathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Commerce API · All Hanzo APIs · Interactive reference

How is this guide?

On this page