---
ai:
  exclude: true
search:
  tags:
    - permissionscheme
    - POST
seo:
  description: >-
    Create a new permission scheme. This method can… Reference for the POST
    /api/2/permissionscheme endpoint in the Jira Software Data Center REST API
    Reference.
sidebar:
  label: Create a new permission scheme
  badge: POST
title: Create a new permission scheme
type: openapi-operation
---
Create a new permission scheme. This method can create schemes with a defined permission set, or without.

`POST /api/2/permissionscheme`

**Request body** (`application/json`)

- `description` (string)
- `expand` (string)
- `id` (integer<int64>)
- `name` (string)
- `permissions` (PermissionGrantBean[])
- `self` (string<uri>)

Request body example:

```json
{
  "description": "description",
  "expand": "string",
  "id": 10100,
  "name": "permission scheme name",
  "permissions": [
    {
      "holder": {
        "expand": "string",
        "field": {
          "clauseNames": "[description]",
          "custom": false,
          "id": "description",
          "name": "Description",
          "navigable": true,
          "orderable": true,
          "schema": {},
          "searchable": true
        },
        "group": {
          "name": "jira-administrators",
          "self": "http://www.example.com/jira/rest/api/2/group?groupname=jira-administrators"
        },
        "parameter": "admin",
        "projectRole": {
          "actors": [
            {
              "avatarUrl": "http://example.com",
              "name": "jira-developers"
            }
          ],
          "description": "A project role that represents developers in a project",
          "id": 10360,
          "name": "Developers",
          "self": "http://www.example.com/jira/rest/api/2/project/MKY/role/10360"
        },
        "type": "user",
        "user": {
          "active": true,
          "avatarUrls": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
          "displayName": "Fred F. User",
          "emailAddress": "fred@example.com",
          "key": "fred",
          "name": "Fred",
          "self": "http://www.example.com/jira/rest/api/2/user?username=fred",
          "timeZone": "Australia/Sydney"
        }
      },
      "id": 10100,
      "permission": "permission scheme name",
      "self": "http://www.example.com/jira/rest/api/2/permissionscheme/10100"
    }
  ],
  "self": "http://www.example.com/jira/rest/api/2/permissionscheme/10100"
}
```

**Responses**

- `201` — Returned if the scheme is created successfully.
- `401` — Returned if user is not logged in.
- `403` — Returned if user is not allowed to create permission schemes.

Response example, 201:

```json
{
  "description": "description",
  "expand": "string",
  "id": 10100,
  "name": "permission scheme name",
  "permissions": [
    {
      "holder": {
        "expand": "string",
        "field": {
          "clauseNames": "[description]",
          "custom": false,
          "id": "description",
          "name": "Description",
          "navigable": true,
          "orderable": true,
          "schema": {},
          "searchable": true
        },
        "group": {
          "name": "jira-administrators",
          "self": "http://www.example.com/jira/rest/api/2/group?groupname=jira-administrators"
        },
        "parameter": "admin",
        "projectRole": {
          "actors": [
            {
              "name": "jira-developers"
            }
          ],
          "description": "A project role that represents developers in a project",
          "id": 10360,
          "name": "Developers",
          "self": "http://www.example.com/jira/rest/api/2/project/MKY/role/10360"
        },
        "type": "user",
        "user": {
          "active": true,
          "avatarUrls": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
          "displayName": "Fred F. User",
          "emailAddress": "fred@example.com",
          "key": "fred",
          "name": "Fred",
          "self": "http://www.example.com/jira/rest/api/2/user?username=fred",
          "timeZone": "Australia/Sydney"
        }
      },
      "id": 10100,
      "permission": "permission scheme name",
      "self": "http://www.example.com/jira/rest/api/2/permissionscheme/10100"
    }
  ],
  "self": "http://www.example.com/jira/rest/api/2/permissionscheme/10100"
}
```
