addActorUsers method

Future<ProjectRole> addActorUsers({
  1. required String projectIdOrKey,
  2. required int id,
  3. required ActorsMap body,
})

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.

Implementation

Future<ProjectRole> addActorUsers(
    {required String projectIdOrKey,
    required int id,
    required ActorsMap body}) async {
  return ProjectRole.fromJson(await _client.send(
    'post',
    'rest/api/3/project/{projectIdOrKey}/role/{id}',
    pathParameters: {
      'projectIdOrKey': projectIdOrKey,
      'id': '$id',
    },
    body: body.toJson(),
  ));
}