Create a permission set.
POST/api/v1/permission-setspermissions:admin
Creates a set containing permissions you currently hold, or any known permissions with Delegate Permissions Beyond Own Access. A set whose name another set already has (compared trimmed and ignoring case) is refused (409 already_exists). No group holds a new set, so nobody's permissions change.
| Scope | permissions:admin (sensitive) |
| Asynchronous | No |
| MCP tool | create_permission_set |
| Portal permissions | create_permission_sets |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | PermissionSetCreateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | 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 |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | already_exists, idempotency_in_progress | 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 | idempotency_key_reused, 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 |
PermissionSetCreateInput
| Field | Type | Required | Description |
|---|---|---|---|
description | string or null | Optional | |
name | string | Required | |
permission_ids | array of string | Required | The complete set of permission_id keys; each appears once. |
PermissionSetGroup
| Field | Type | Required | Description |
|---|---|---|---|
group_id | string | Required | |
group_name | string | Required | |
member_count | integer | Required | The group's live users. ≥ -2147483648; ≤ 2147483647 |