Hanzo AI
OpenapiCommerce

Update listing

Requires the key to already be present — an absent one is 404 — and answers the store's listing map at 200.

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

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

Requires the key to already be present — an absent one is 404 — and answers the store's listing map at 200. Read the behaviour before relying on it: the decoded body is applied to a COPY taken out of the map and is never assigned back, so the stored listing is unchanged and the map returned is exactly the map that was already there. An actual edit to an existing listing has to go through the upsert, which does write its result back into the store. A body that fails to decode is still 400. Admin-gated and namespaced to the caller's org.

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 commerce store listing update <storeid> <key>

Commerce API · All Hanzo APIs · Interactive reference

How is this guide?

On this page