---
ai:
  exclude: true
search:
  tags:
    - project
    - PUT
seo:
  description: >-
    Assigns project with… Reference for the PUT
    /api/2/project/{projectKeyOrId}/priorityscheme endpoint in the Jira Software
    Data Center REST API Reference.
sidebar:
  label: Assign project with priority scheme
  badge: PUT
title: Assign project with priority scheme
type: openapi-operation
---
Assigns project with priority scheme. Priority scheme assign with migration is possible from the UI. Operation will fail if migration is needed as a result of operation eg. there are issues with priorities invalid in the destination scheme. All project keys associated with the priority scheme will only be returned if additional query parameter is provided expand=projectKeys.

`PUT /api/2/project/{projectKeyOrId}/priorityscheme`

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

Object that contains an id of the scheme

- `id` (integer<int64>)

Request body example:

```json
{
  "id": 10000
}
```

**Responses**

- `200` — Affected priority scheme.
- `400` — Returned if the request is not valid and the priority scheme could not be updated. Eg. migration is needed as a result of operation.
- `403` — Returned if the user does not have rights to assign priority schemes.
- `404` — Returned if project or priority scheme is not found.

Response example, 200:

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