Undo one change
Puts back the version each file had before this change, as a draft — publish to make it live. It works on a change that is still a draft and on one that is already published, and it never overwrites a later edit: a page edited since is skipped (changed_since) and the rest are still undone. Send keys to undo only some files of a change; omit it to undo all.
Some changes cannot be undone here: a page that was created and is live now (delete it instead), a delete that also removed routes, the site brief, and a change that touched too many files. The undo is recorded as a revert event. An agent on "Drafts only" AI access may use this; one on "Read only" may not.
Request
- Base URL: https://api.dotsy.ai
- URL: https://api.dotsy.ai/api/v1/sites/{slug}/activity/{id}/revert
- Auth: one of:
- HTTP bearer
- HTTP bearer
Path parameters
Site slug or site id (UUID). An old slug answers 301/308 and a site id 307 to the canonical slug path.
An event id from the activity list.
Request body
Response
At least one file was put back (staged as a draft).
Changes
No recorded changes to this operation across all 1 revision of this API.