POST /rest/api/2/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.

This operation can be accessed anonymously.

Permissions required: Administer Projects project permission for the project or Administer Jira global permission.

Servers

Path parameters

Name Type Required Description
id Integer Yes

The ID of the project role. Use Get all project roles to get a list of project role IDs.

projectIdOrKey String Yes

The project ID or project key (case sensitive).

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
groupId[] Array No

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

group[] Array No

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.

user[] Array No

The user account ID of the user to add.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.