POST/api/v1/documents/{slug}/versions/{n}/restore

Restore a page version

Makes version n the page again, as a new version. The page as it was is saved first, so a restore can be undone.

API token required60 per minute per IPMCP: restore_page_version

Guide: Version history

Code samples and Try it

Path parameters

#
  • slugstringRequired

    The document's address: the part after markdrop.in/.

  • nintegerRequired

    The version number, from List page versions.

Responses

#
  • 200OK.
  • 401No token, or the token is revoked or mistyped.
  • 422The request didn't validate. detail lists each problem, with where it is (loc) and why (msg).
  • 423Someone else has the page open in the editor.
  • 429Too many requests from your IP address. Wait the seconds in Retry-After.
Did this page help?