> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superdoc.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# permissionRanges.updatePrincipal

> Change which principal is allowed to edit a permission range. Updates the principal fields on the start marker.

## Summary

Change which principal is allowed to edit a permission range. Updates the principal fields on the start marker.

* Operation ID: `permissionRanges.updatePrincipal`
* API member path: `editor.doc.permissionRanges.updatePrincipal(...)`
* Mutates document: `yes`
* Idempotency: `idempotent`
* Supports tracked mode: `no`
* Supports dry run: `yes`
* Deterministic target resolution: `yes`

## Expected result

Returns a PermissionRangeMutationResult with the updated range info on success.

## Input fields

| Field | Type | Required | Description |
| - | - | - | - |
| `id` | string | yes | |
| `principal` | object | yes | |
| `principal.id` | string | no | |
| `principal.kind` | enum | yes | `"everyone"`, `"editor"` |

### Example request

```json theme={null}
{
  "id": "id-001",
  "principal": {
    "id": "id-001",
    "kind": "everyone"
  }
}
```

## Output fields

*No fields.*

### Example response

```json theme={null}
{}
```

## Pre-apply throws

* `TARGET_NOT_FOUND`
* `INVALID_TARGET`
* `INVALID_INPUT`
* `CAPABILITY_UNAVAILABLE`

## Non-applied failure codes

* None

## Raw schemas

> [accordion] Raw input schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "id": {
>       "type": "string"
>     },
>     "principal": {
>       "additionalProperties": false,
>       "properties": {
>         "id": {
>           "type": "string"
>         },
>         "kind": {
>           "enum": [
>             "everyone",
>             "editor"
>           ],
>           "type": "string"
>         }
>       },
>       "required": [
>         "kind"
>       ],
>       "type": "object"
>     }
>   },
>   "required": [
>     "id",
>     "principal"
>   ],
>   "type": "object"
> }
> ```

> [accordion] Raw output schema
>
> ```json theme={null}
> {
>   "type": "object"
> }
> ```

> [accordion] Raw success schema
>
> ```json theme={null}
> {
>   "type": "object"
> }
> ```

> [accordion] Raw failure schema
>
> ```json theme={null}
> {
>   "type": "object"
> }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.