"As a Curator, I want to revert to a previous revision of a page, so that the best known revision of a page is always the current one."
POST /page/{title}/revert
Makes the content of the revision with ID in request body the current content of the page.
Request body: JSON object
- id: ID of the revision to roll back to
- comment: comment about the rollback
Notable request headers: none
Status codes:
200 - OK, that worked
400 - client error, such as no such revision
403 - not authorized
404 - no such page
Notable response headers: none
Response body: JSON object, new revision created by the rollback
- id: revision ID of the new revision created by the rollback, **not** the revision that was rolled-back-to
- page: Object with these fields
- id: ID of the page
- title: current title of the page (might have been changed)
- user: user who made the change, object with these fields
- id: ID of the user or null for anonymous
- name: name of the user or unique identifier for anonymous
- comment: User comment ("edit summary") describing the change that generated this revision
- timestamp: time the revision was made
- size: size of the revision in "bogobytes" (as from DB, usually bytes)
- delta: change from previous revision in "bogobytes" (as from DB, usually bytes)
- minor: was this a minor revision? boolean