---
ai:
  exclude: true
search:
  tags:
    - project
    - PUT
seo:
  description: >-
    Updates a project role to… Reference for the PUT
    /api/2/project/{projectIdOrKey}/role/{id} endpoint in the Jira Software Data
    Center REST API Reference.
sidebar:
  label: Update project role with actors
  badge: PUT
title: Update project role with actors
type: openapi-operation
---
Updates a project role to include the specified actors (users or groups). Can be also used to clear roles to not include any users or groups. For user actors, their usernames should be used.

`PUT /api/2/project/{projectIdOrKey}/role/{id}`

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

The actors to set for the role

- `categorisedActors` (object)
- `id` (integer<int64>)

Request body example:

```json
{
  "categorisedActors": {
    "atlassian-user-role-actor": [
      "admin"
    ],
    "atlassian-group-role-actor": [
      "jira-developers"
    ]
  },
  "id": 10360
}
```

**Responses**

- `200` — Role details and its actors after modification
- `404` — Returned if the actor could not be added to the project role

Response example, 200:

```json
{
  "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"
}
```
