createPermissionScheme method

Future<PermissionScheme> createPermissionScheme({
  1. String? expand,
  2. required PermissionScheme body,
})

Creates a new permission scheme. You can create a permission scheme with or without defining a set of permission grants.

Permissions required: Administer Jira global permission.

Implementation

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