Restrict or unrestrict a page
View as MarkdownPOST
/v1/documents/{documentId}/restrictedA 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.
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
- oktrue
{
"ok": true
}Errors use one envelope for every endpoint. See Errors and versions.