Summary
Enable Word-style editing restriction on the document. Only readOnly mode is supported in v1.- Operation ID:
protection.setEditingRestriction - API member path:
editor.doc.protection.setEditingRestriction(...) - Mutates document:
yes - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
yes - Deterministic target resolution:
yes
Expected result
Returns a ProtectionMutationResult with the updated protection state on success.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
formattingRestricted | boolean | no | |
mode | enum | yes | "readOnly" |
Example request
Output fields
No fields.Example response
Pre-apply throws
INVALID_INPUTCAPABILITY_UNAVAILABLE
Non-applied failure codes
NO_OP
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema
Raw success schema
Raw success schema
Raw failure schema
Raw failure schema

