setActors method
Future<ProjectRole>
setActors({
- required String projectIdOrKey,
- required int id,
- required ProjectRoleActorsUpdateBean body,
Sets the actors for a project role for a project, replacing all existing actors.
To add actors to the project without overwriting the existing list, use Add actors to project role.
Permissions required: Administer Projects project permission for the project or Administer Jira global permission.
Implementation
Future<ProjectRole> setActors(
{required String projectIdOrKey,
required int id,
required ProjectRoleActorsUpdateBean body}) async {
return ProjectRole.fromJson(await _client.send(
'put',
'rest/api/3/project/{projectIdOrKey}/role/{id}',
pathParameters: {
'projectIdOrKey': projectIdOrKey,
'id': '$id',
},
body: body.toJson(),
));
}