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

Take the edit lock

Takes, or renews, a page's edit lock, so nobody else edits it at the same time. It lasts two minutes past your last call: renew it every 30 seconds while you edit.

API token required60 per minute per IP

Guide: Pages and the block editor

Code samples and Try it

Path parameters

#
  • slugstringRequired

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

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 is editing: code is locked, with the holder's name.
  • 429Too many requests from your IP address. Wait the seconds in Retry-After.
Did this page help?