provider Project role actors POST /rest/api/3/project/{projectIdOrKey}/role/{id}
@utdk/jira /rest/api/3/project/{projectIdOrKey}/role/{id}
Add actors to project role
Adds actors to a project role for the project. To replace all actors for the project, use [Set actors for project role](#api-rest-api-3-project-projectIdOrKey-role-id-put). This operation can be accessed anonymously. **[Permissions](#permissions) required:** *Administer Projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project or *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).
projectIdOrKey path required
The project ID or project key (case sensitive).
string
id path required
The ID of the project role. Use [Get all project roles](#api-rest-api-3-role-get) to get a list of project role IDs.
integer

Try it

Authentication
Configure credentials for The Jira Cloud platform REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

addactorusers
POST/rest/api/3/project/{projectIdOrKey}/role/{id}
Adds actors to a project role for the project. To replace all actors for the project, use [Set actors for project role](#api-rest-api-3-project-projectIdOrKey-role-id-put). This operation can be accessed anonymously. **[Permissions](#permissions) required:** *Administer Projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project or *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).

Parameters

required

The project ID or project key (case sensitive).

required

The ID of the project role. Use [Get all project roles](#api-rest-api-3-role-get) to get a list of project role IDs.

Input

The name of the group to add. This parameter cannot be used with the `groupId` parameter. As a group's name can change, use of `groupId` is recommended.

The ID of the group to add. This parameter cannot be used with the `group` parameter.

The user account ID of the user to add.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import jira from '@utdk/jira';

await jira.addactorusers()