EaserixDocs
DevelopersAPI referenceNotesPages

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.

View as Markdown
PUT
/v1/pages/{id}/lock
AuthorizationBearer <token>

In: header

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

application/json

curl -X PUT "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  }}