deleteProjectRoleActorsFromRole method

Future<ProjectRole> deleteProjectRoleActorsFromRole({
  1. required int id,
  2. String? user,
  3. String? groupId,
  4. String? group,
})

Deletes the default actors from a project role. You may delete a group or user, but you cannot delete a group and a user 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.

Implementation

Future<ProjectRole> deleteProjectRoleActorsFromRole(
    {required int id, String? user, String? groupId, String? group}) async {
  return ProjectRole.fromJson(await _client.send(
    'delete',
    'rest/api/3/role/{id}/actors',
    pathParameters: {
      'id': '$id',
    },
    queryParameters: {
      if (user != null) 'user': user,
      if (groupId != null) 'groupId': groupId,
      if (group != null) 'group': group,
    },
  ));
}