Create Permission Scheme
POST {{baseUrl}}/rest/api/3/permissionscheme?expand=<string>
Creates a new permission scheme. You can create a permission scheme with or without defining a set of permission grants.
Permissions required: Administer Jira global permission.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
expand | string | Use expand to include additional information in the response. This parameter accepts a comma-separated list. Note that permissions are always included when you specify any value. Expand options include: |
allReturns all expandable information.fieldReturns information about the custom field granted the permission.groupReturns information about the group that is granted the permission.permissionsReturns all permission grants for each permission scheme.projectRoleReturns information about the project role granted the permission.userReturns information about the user who is granted the permission. |
Request Body
{"name"=>"<string>", "description"=>"<string>", "scope"=>{"type"=>"TEMPLATE", "project"=>{"self"=>"pariatur Ut et fugiat cillum", "id"=>"commodo mollit", "key"=>"dolore laboris minim ex", "name"=>"Ut est consectetur exercitation", "projectTypeKey"=>"service_desk", "simplified"=>true, "avatarUrls"=>{"16x16"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "24x24"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "32x32"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "48x48"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "projectCategory"=>{"self"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "description"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}}, "permissions"=>[{"holder"=>{"type"=>"<string>", "parameter"=>"<string>"}, "permission"=>"<string>"}, {"holder"=>{"type"=>"<string>", "parameter"=>"<string>"}, "permission"=>"<string>"}]}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"id":10000,"self":"https://your-domain.atlassian.net/rest/api/3/permissionscheme/10000","name":"Example permission scheme","description":"description","permissions":[{"id":10000,"self":"https://your-domain.atlassian.net/rest/api/3/permissionscheme/permission/10000","holder":{"type":"group","parameter":"jira-core-users","expand":"group"},"permission":"ADMINISTER_PROJECTS"}]}