assignPermissionScheme method

Future<PermissionScheme> assignPermissionScheme({
  1. required String projectKeyOrId,
  2. String? expand,
  3. required IdBean body,
})

Assigns a permission scheme with a project. See Managing project permissions for more information about permission schemes.

Permissions required: Administer Jira global permission

Implementation

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