Skip to content
LydieDevelopers
Menu

Restrict or unrestrict a page

View as Markdown
POST/v1/documents/{documentId}/restricted

A restricted page does not inherit access from its parent or its teamspace: only its own grants apply (to it and its subpages). Restricting gives you full access so you keep it.

Request
curl -X POST "https://api.lydie.co/v1/documents/01JCQ3V5MZ8G4ZK2X7T9R6N1PB/restricted" \
  -H "Authorization: Bearer $LYDIE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "restricted": false
  }'

Path parameters

Body

Response

200
{
  "ok": true
}

Errors use one envelope for every endpoint. See Errors and versions.