Save a listing
save_listingFor shop owners: create a listing, or change one named by listing at its revision. Send only what changes; text merges by language. options, a group's choices and questions are whole lists, each entry kept by its id or name, so one left out is removed. A new listing is a draft until status: "active". Sizes are a group with sizes: true, each choice with its own price. It does not delete a listing: delete_item does. Returns the listing as get_listing shows it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"request_id": "<request_id>"
},
"name": "save_listing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The listing's name, with its unit when it is sold by one, such as "Sourdough loaf" or "Cookies (dozen)". Required for a new listing. | |
| sold | No | always: any day with notice. windowed: only in drops (save_drop). | |
| tags | No | Short lower-case words. The whole list. | |
| price | No | The price for one unit as the listing names it; put the unit in the name or a size (Dozen, Box of 6). With sizes, each size has its own and this is ignored. | |
| quote | No | Priced per order by quote: no price. | |
| stock | No | How many are left to sell now, in all (always only). 0: sold out. null: not counted. | |
| images | No | The whole list of image ids from add_media, the cover first. | |
| status | No | draft: not on the site, which a new listing is until you send active. active: on the site. archived: off the shop, kept for its orders. | |
| deposit | No | What an order pays up front: { "percent": 50 } or { "amount": {...} }. null: none. | |
| listing | No | The listing to change, by name or id; left out, a new one is created. | |
| max_qty | No | Most an order takes. null: no limit. | |
| min_qty | No | Least an order takes. | |
| on_menu | No | windowed: false shows it only while a drop of it is open. | |
| options | No | The whole list of option groups (sizes, flavors, extras). Left out: they stay as they are. | |
| category | No | A category by name, in the shop's main language. A name the shop does not have yet adds it. null: no category. | |
| featured | No | Marked as a best seller. | |
| revision | No | Required with `listing`: its `revision` as last read. | |
| questions | No | The whole list of questions a buyer answers. Left out: they stay as they are. | |
| order_mode | No | null inherits: the drop's, then the listing's, then the shop's. | |
| request_id | Yes | Unique per call; the same id again returns the first result. | |
| cutoff_time | No | HH:mm: orders for a day close at this time on the last day of notice (always only). | |
| daily_limit | No | Most it sells a day (always only). null: no limit. | |
| description | No | null clears it. | |
| notice_days | No | Days of notice it needs (always only). null: the shop's default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| error | No | ||
| choices | No | ||
| created | No | ||
| listing | No | ||
| outcome | No | ||
| timezone | No | ||
| confirmation | No |