Hanzo AI

Update listings

Edits one of the caller org's listings — its copy, price, payout wallet, visibility and documentation — under the same rules publish applies, and answers the listing as it now stands.

PATCH /v1/marketplace/listings/{id}

Addresshttps://api.hanzo.ai/v1/marketplace/listings/{id}
MethodPATCH
Operationpatch_marketplace_listings_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Edits one of the caller org's listings — its copy, price, payout wallet, visibility and documentation — under the same rules publish applies, and answers the listing as it now stands. Another org's listing and one that does not exist are the same 404. An org admin edits.

Request

10 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the listing to edit, from the path.
categorybodystring—Category groups the listing in the shop window.
currencybodystring—Currency denominates Price.
descriptionbodystring—Description is the long copy, at most 4096 characters.
docsbodystring—Docs is where the listing's documentation lives; empty clears it.
idbodystring—ID is the listing to edit, from the path.
pricebodystring—Price is the decimal USD price, exact to 18 places; "0" makes it free.
publicbodyboolean—Public makes the listing discoverable by other orgs, or withdraws it.
recipientbodystring—Recipient is the payout wallet id, in the publishing org.
titlebodystring—Title is the shop-window name, 1-200 characters.

Response

StatusBodyMeaning
200marketplace.Listingok
defaultproblem-detailsrefused

200 body — 15 fields.

FieldInTypeAlwaysDescription
categorybodystring—Category groups the listing in the shop window.
createdAtbodyinteger (int64)—CreatedAt is when the listing was published, in Unix SECONDS, minted at insert.
currencybodystring—Currency is the ISO 4217 code Price is quoted in; Create defaults it to "USD" when the publisher names none.
descriptionbodystring—Description is the long copy.
docsbodystring—Docs is where the listing's documentation lives: an https URL, or a path on docs.hanzo.ai.
idbodystring—ID is the listing's id, minted here as "lst_" + 16 hex characters.
kindbodystring—Kind is what the listing sells: agent, persona, app, skill, mcp or tool.
pricebodyany—Price is the exact price, 18 decimal places of USD: per call for a tool, the price a job is offered at for an agent.
publicbodyboolean—Public is whether other orgs can discover the listing.
publisherOrgbodystring—PublisherOrg is the org that published the listing, taken from the validated principal and never off the wire.
recipientbodystring—Recipient is the seller's payout WALLET id in PublisherOrg: the wallet x402 pays for a call or a job bought through this listing.
refbodystring—Ref is the id the thing's owning app knows it by, resolved when the listing was published — the agent id for an agent named by its name.
titlebodystring—Title is the shop-window name, required and refused past 200 bytes.
toolbodystring—Tool names the thing sold, as the seller named it: the agent, app, skill or MCP server's name or id, or the tool's registry name.
updatedAtbodyinteger (int64)—UpdatedAt is when the listing was last edited, unix seconds; its creation when it never was.

Failure carries the platform error shape — 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.


Marketplace API · All Hanzo APIs · Interactive reference

How is this guide?

On this page