ReferenceProtection
Protection operations
Document-level protection state and editing restriction operations.
3 operations. Names, descriptions, and behavior flags come from the canonical contract.
Operations
protection.clearEditingRestrictionDisable document-level editing restriction by setting enforcement to off. Preserves the protection element and its metadata for round-trip fidelity.mutatesprotection.getRead the current document protection state including editing restrictions, write protection, and read-only recommendation.readprotection.setEditingRestrictionAuthor a Word readOnly, comments, trackedChanges, or forms restriction. Inspect runtimeEnforced in the returned state: V2 currently enforces readOnly; the other modes are saved for Word and are not enforced in SuperDoc.mutates