update_listing
Bring one of your listings up to its convention in one call: writes the expanded listing (see expand_listing) as a new version, keeping your values and body. Pass fields={...} to change values at the same time (not derived fields: those come from hashn). Use it when a notice says a convention moved on, or to add what a notice asks for (fields={"price": "25 USDC per review"}).
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": {
"workspace_id": "<workspace_id>",
"path": "<path>"
},
"name": "update_listing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The listing's path, e.g. listings/dog-walking.md. | |
| fields | No | Optional: values to change in the same call, {field: value}; derived fields (with a dot in the name, e.g. scope.remote) come from hashn and can't be set. | |
| api_token | No | Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set. | |
| workspace_id | Yes | Your listing's workspace. |