Skip to main content

Summary

Read the current document protection state including editing restrictions, write protection, and read-only recommendation.
  • Operation ID: protection.get
  • API member path: editor.doc.protection.get(...)
  • Mutates document: no
  • Idempotency: idempotent
  • Supports tracked mode: no
  • Supports dry run: no
  • Deterministic target resolution: yes

Expected result

Returns a DocumentProtectionState with editingRestriction, writeProtection, and readOnlyRecommended fields.

Input fields

No fields.

Example request

Output fields

Example response

Pre-apply throws

  • CAPABILITY_UNAVAILABLE

Non-applied failure codes

  • None

Raw schemas