---
ai:
  exclude: true
search:
  tags:
    - priorityschemes
    - POST
seo:
  description: >-
    Creates new priority scheme. Reference for the POST /api/2/priorityschemes
    endpoint in the Jira Software Data Center REST API Reference.
sidebar:
  label: Create new priority scheme
  badge: POST
title: Create new priority scheme
type: openapi-operation
---
Creates new priority scheme.

`POST /api/2/priorityschemes`

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

Data of priority scheme to create

- `defaultOptionId` (string)
- `description` (string)
- `id` (integer<int64>)
- `name` (string)
- `optionIds` (string[])

Request body example:

```json
{
  "defaultOptionId": "3",
  "description": "description",
  "id": 10100,
  "name": "priority scheme name",
  "optionIds": [
    "1",
    "2",
    "3",
    "4",
    "5"
  ]
}
```

**Responses**

- `201` — Newly created priority scheme
- `400` — Returned if the request is invalid.
- `401` — Returned if the user is not authenticated.
- `403` — Returned if the caller user does not have permission to create priority scheme.
- `500` — Returned if the priority scheme was not created because of other error.

Response example, 201:

```json
{
  "defaultOptionId": "string",
  "defaultScheme": true,
  "description": "string",
  "id": 0,
  "name": "string",
  "optionIds": [
    "string"
  ],
  "projectKeys": [
    "string"
  ],
  "self": "http://example.com"
}
```
