updateProject method

Future<Project> updateProject({
  1. required String projectIdOrKey,
  2. String? expand,
  3. required UpdateProjectDetails body,
})

Updates the project details of a project.

All parameters are optional in the body of the request.

Permissions required: Administer Jira global permission.

Implementation

Future<Project> updateProject(
    {required String projectIdOrKey,
    String? expand,
    required UpdateProjectDetails body}) async {
  return Project.fromJson(await _client.send(
    'put',
    'rest/api/3/project/{projectIdOrKey}',
    pathParameters: {
      'projectIdOrKey': projectIdOrKey,
    },
    queryParameters: {
      if (expand != null) 'expand': expand,
    },
    body: body.toJson(),
  ));
}