fullyUpdateProjectRole method

Future<ProjectRole> fullyUpdateProjectRole({
  1. required int id,
  2. required CreateUpdateRoleRequestBean body,
})

Updates the project role's name and description. You must include both a name and a description in the request.

Permissions required: Administer Jira global permission.

Implementation

Future<ProjectRole> fullyUpdateProjectRole(
    {required int id, required CreateUpdateRoleRequestBean body}) async {
  return ProjectRole.fromJson(await _client.send(
    'put',
    'rest/api/3/role/{id}',
    pathParameters: {
      'id': '$id',
    },
    body: body.toJson(),
  ));
}