---
ai:
  exclude: true
search:
  tags:
    - priorityschemes
    - PUT
seo:
  description: >-
    Updates a priority scheme. Update will… Reference for the PUT
    /api/2/priorityschemes/{schemeId} endpoint in the Jira Software Data Center
    REST API Reference.
sidebar:
  label: Update a priority scheme
  badge: PUT
title: Update a priority scheme
type: openapi-operation
---
Updates a priority scheme. Update will be rejected if issue migration would be needed as a result of scheme update. Priority scheme update with migration is possible from the UI.

`PUT /api/2/priorityschemes/{schemeId}`

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

New scheme data

- `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**

- `200` — Updated 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 update priority scheme.
- `404` — Returned if the priority scheme does not exist.
- `500` — Returned if the priority scheme was not updated because of other error.

Response example, 200:

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