POST /rest/api/2/role/{id}/actors
Adds default actors to a role. You may add groups or users, but you cannot add groups and users in the same request.
Changing a project role's default actors does not affect project role members for projects already created.
Permissions required: Administer Jira global permission.
Servers
- https://your-domain.atlassian.net
 
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.  | 
          
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 as a default actor. This parameter cannot be used with the   | 
          
group[] | 
            Array | No | 
                 The name of the group to add as a default actor. This parameter cannot be used with the   | 
          
user[] | 
            Array | No | 
                 The account IDs of the users to add as default actors. This parameter accepts a comma-separated list. For example,   | 
          
How to start integrating
- Add HTTP Task to your workflow definition.
 - 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.
 
 - Click Test request to test run your request to the API and see the API's response.