updateVersion method

Future<Version> updateVersion({
  1. required String id,
  2. required Version body,
})

Updates a project version.

This operation can be accessed anonymously.

Permissions required: Administer Jira global permission or Administer Projects project permission for the project that contains the version.

Implementation

Future<Version> updateVersion(
    {required String id, required Version body}) async {
  return Version.fromJson(await _client.send(
    'put',
    'rest/api/3/version/{id}',
    pathParameters: {
      'id': id,
    },
    body: body.toJson(),
  ));
}