updateScreen method

Future<Screen> updateScreen({
  1. required int screenId,
  2. required UpdateScreenDetails body,
})

Updates a screen. Only screens used in classic projects can be updated.

Permissions required: Administer Jira global permission.

Implementation

Future<Screen> updateScreen(
    {required int screenId, required UpdateScreenDetails body}) async {
  return Screen.fromJson(await _client.send(
    'put',
    'rest/api/3/screens/{screenId}',
    pathParameters: {
      'screenId': '$screenId',
    },
    body: body.toJson(),
  ));
}