---
ai:
  exclude: true
search:
  tags:
    - project
    - POST
seo:
  description: >-
    Adds an actor (user or group)… Reference for the POST
    /api/2/project/{projectIdOrKey}/role/{id} endpoint in the Jira Software Data
    Center REST API Reference.
sidebar:
  label: Add actor to project role
  badge: POST
title: Add actor to project role
type: openapi-operation
---
Adds an actor (user or group) to a project role. For user actors, their usernames should be used.

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

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

The actors to add to the role

- `empty` (boolean)

Request body example:

```json
{
  "empty": true,
  "property1": [
    "string"
  ],
  "property2": [
    "string"
  ]
}
```

**Responses**

- `200` — Role details and its actors after modification
- `404` — Returned if the project or role is not found, the calling user does not have permission to view it or does not have permission to modify the actors in the project role.
- `410` — Returned if none of the specified groups and users exist.

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