Update a permission set (JSON Merge Patch).
PATCH/api/v1/permission-sets/{permission_set_id}permissions:admin
Renames a set or changes its description or permissions (permission_ids replaces the whole list). Renaming to another set's name is refused (409 already_exists). When the permissions change, everyone in a group that holds the set sees it on their next request. Every added permission must be one you currently hold unless you have Delegate Permissions Beyond Own Access, regardless of which groups hold the set.
| Scope | permissions:admin (sensitive) |
| Asynchronous | No |
| MCP tool | update_permission_set |
| Portal permissions | edit_permission_sets |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
permission_set_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | PermissionSetPatchInput |
application/merge-patch+json | PermissionSetPatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json PermissionSet or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | already_exists | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
PermissionSet
| Field | Type | Required | Description |
|---|---|---|---|
default_key | string or null | Required | The Docwize default this set was created from; null for a set an administrator made. |
description | string or null | Required | |
groups | array of PermissionSetGroup | Required | The groups that hold the set, by name. |
member_count | integer | Required | Distinct live users across the groups: a user in two of them counts once. ≥ -2147483648; ≤ 2147483647 |
name | string | Required | |
permission_ids | array of string | Required | The permissions in the set, in key order. |
permission_set_id | string | Required |
PermissionSetGroup
| Field | Type | Required | Description |
|---|---|---|---|
group_id | string | Required | |
group_name | string | Required | |
member_count | integer | Required | The group's live users. ≥ -2147483648; ≤ 2147483647 |
PermissionSetGroupInput
| Field | Type | Required | Description |
|---|---|---|---|
group_id | string | Optional | |
group_name | string | Optional | |
member_count | integer | Optional | The group's live users. ≥ -2147483648; ≤ 2147483647 |
PermissionSetPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
default_key | string or null | Optional | |
description | string or null | Optional | |
groups | array of PermissionSetGroupInput or null | Optional | |
member_count | integer or null | Optional | |
name | string or null | Optional | |
permission_ids | array of string or null | Optional | |
permission_set_id | string or null | Optional |