POST
/api/v1/documents/{slug}/lockTake 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 itPath parameters
#slugstringRequiredThe document's address: the part after
markdrop.in/.
Responses
#200OK.401No token, or the token is revoked or mistyped.422The request didn't validate.detaillists each problem, with where it is (loc) and why (msg).423Someone else is editing:codeislocked, with theholder's name.429Too many requests from your IP address. Wait the seconds inRetry-After.