Summary
Create a permission range exception region in the document. Inserts matched permStart/permEnd markers at the target.- Operation ID:
permissionRanges.create - API member path:
editor.doc.permissionRanges.create(...) - Mutates document:
yes - Idempotency:
non-idempotent - Supports tracked mode:
no - Supports dry run:
yes - Deterministic target resolution:
yes
Expected result
Returns a PermissionRangeMutationResult with the created range info on success.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | no | |
principal | object | yes | |
principal.id | string | no | |
principal.kind | enum | yes | "everyone", "editor" |
target | SelectionTarget | yes | SelectionTarget |
target.end | SelectionPoint | yes | SelectionPoint |
target.kind | "selection" | yes | Constant: "selection" |
target.start | SelectionPoint | yes | SelectionPoint |
Example request
Output fields
No fields.Example response
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETINVALID_INPUTCAPABILITY_UNAVAILABLE
Non-applied failure codes
- None
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

