Skip to main content

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.

Scopepermissions:admin (sensitive)
AsynchronousNo
MCP toolupdate_permission_set
Portal permissionsedit_permission_sets

Parameters​

NameInTypeRequiredDescription
permission_set_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonPermissionSetPatchInput
application/merge-patch+jsonPermissionSetPatchInput

Responses​

StatusDescriptionBody
200Success.application/json PermissionSet or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409already_existsapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

PermissionSet​

FieldTypeRequiredDescription
default_keystring or nullRequiredThe Docwize default this set was created from; null for a set an administrator made.
descriptionstring or nullRequired
groupsarray of PermissionSetGroupRequiredThe groups that hold the set, by name.
member_countintegerRequiredDistinct live users across the groups: a user in two of them counts once. ≥ -2147483648; ≤ 2147483647
namestringRequired
permission_idsarray of stringRequiredThe permissions in the set, in key order.
permission_set_idstringRequired

PermissionSetGroup​

FieldTypeRequiredDescription
group_idstringRequired
group_namestringRequired
member_countintegerRequiredThe group's live users. ≥ -2147483648; ≤ 2147483647

PermissionSetGroupInput​

FieldTypeRequiredDescription
group_idstringOptional
group_namestringOptional
member_countintegerOptionalThe group's live users. ≥ -2147483648; ≤ 2147483647

PermissionSetPatchInput​

FieldTypeRequiredDescription
default_keystring or nullOptional
descriptionstring or nullOptional
groupsarray of PermissionSetGroupInput or nullOptional
member_countinteger or nullOptional
namestring or nullOptional
permission_idsarray of string or nullOptional
permission_set_idstring or nullOptional