Unlock a page
The reverse of lockPage, with the same permission rule. Idempotent.
View as MarkdownAuthorization
bearer In: header
Path Parameters
uuidResponse Body
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/pages/497f6eca-6276-4993-bfeb-53cbbbba6f08/lock"{ "page": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "workspaceId": "ef0efa32-d1c1-43d4-a5e2-fe7b4f00403c", "parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43", "title": "string", "icon": "string", "position": 0, "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "created": "2019-08-24T14:15:22Z", "updated": "2019-08-24T14:15:22Z", "archivedAt": "2019-08-24T14:15:22Z", "dailyDate": "string", "inbox": true, "locked": true, "lockedAt": "2019-08-24T14:15:22Z", "lockedBy": "9e229eb0-bb3a-4c40-a7bd-2e4e393d24d4", "lockedByName": "string", "canLock": true, "review": { "everyMonths": 0, "ownerId": "4d206909-730f-409a-88f6-dcfaa8fc28cc", "ownerName": "string", "ownerIsCreator": true, "lastReviewedAt": "2019-08-24T14:15:22Z", "lastReviewedBy": "13e30e10-651c-466b-bf70-25caf2ef49c8", "lastReviewedByName": "string", "dueAt": "2019-08-24T14:15:22Z", "overdue": true, "canManage": true }, "source": "string", "sourceRef": "string", "publishedRev": 0, "publishedAt": "2019-08-24T14:15:22Z", "docRev": 0, "excerpt": "string", "published": true, "openComments": 0, "internalOverride": true, "internal": true }}Delete a trashed page permanently
Only a page that is already in the trash (archived) can be deleted forever; a live page returns 409. The page goes with its trashed sub-pages. A sub-page that is still live is kept and moved up to the deleted page's parent (or the space root if that parent is trashed). Deleting forever needs the person who wrote every page it removes, the owner of the page's space, or a workspace owner or admin (403 `delete_refused` otherwise; the page stays in the trash). Moving a page to the trash (`updatePage` with `archived: true`) stays open to anyone who can edit it. Trashing and restoring are written to the platform audit log as `notes.page.trashed` and `notes.page.restored` (ENT-147).
Lock a page so it can't be edited by accident
While a page is locked it can be read and commented on, but its content, title and icon can't change through any route (the editor, live sync, the API, edit share links); those writes answer 423 `page_locked`. Moving, trashing and sharing still work. Only the page's creator or a workspace owner/admin may lock or unlock it (403 otherwise). Idempotent: locking a locked page keeps the first lock. Each real change adds a `locked` / `unlocked` entry to the page's version history and the audit log (`notes.page.locked`, `notes.page.unlocked`). Open editors switch to read-only within a few seconds.