POST/api/v1/documents/{slug}/lock/keep

Keep unsaved text

Keeps text you couldn't save, because someone took over the page, as a version in its history. The page itself doesn't change.

API token required60 per minute per IP

Guide: Editing together

Code samples and Try it

Path parameters

#
  • slugstringRequired

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

Request body

#

application/json, required

  • titlestring

    Shown on the page and in link previews. Up to 500 characters.

  • contentstringRequired

    The document's Markdown. Up to 2,000,000 characters.

  • base_revinteger
  • reason"taken_over" | "lost" | "conflict"

    Default "taken_over".

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).
  • 429Too many requests from your IP address. Wait the seconds in Retry-After.
Did this page help?