Keep a change
apply_editKeeps changes. On a kept site it takes the proposal_id that propose_edit returned, or that site_status lists, and saves that staged set as the site's next numbered version, all at once or not at all. It does not publish: readers see the change after publish. A staged set is not kept if someone else changed the same pages in the meantime or if it is more than a day old, and the answer says which. A member whose role does not allow keeping leaves the change waiting for an editor. On a preview, given its draft_id, there is no staged set: it takes the operations themselves and saves them into the preview at once, and the preview's link shows them. rollback undoes a kept version.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "apply_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Which site: its name (like Acme Docs), its Documarium address (like acme.documarium.com) or the short name in that address (like acme); a custom domain is not accepted. Leave it out when this connection covers one site; when it covers several and site is left out, nothing is done and the answer names them. A preview is not one of these sites; draft_id names a preview. | |
| draft_id | No | Which preview: the draft_id create_preview returned, a 43-character key of letters, digits, - and _ (stray quotes or punctuation around it are ignored). It is not the code in the preview's link. Leave it out for a kept site, which site names. | |
| operations | No | On a preview only: the changes to save, 1 to 500, in the same form propose_edit takes, saved all at once or not at all. Not used on a kept site, where proposal_id names the staged set. | |
| proposal_id | No | On a kept site: the reference propose_edit returned, also listed by site_status. A reference can be kept once, within 24 hours of being proposed. Not used on a preview. |