createPrivateSpace method

Future<Space> createPrivateSpace({
  1. required SpaceCreate body,
})

Creates a new space that is only visible to the creator. This method is the same as the Create space method with permissions set to the current user only. Note, currently you cannot set space labels when creating a space.

Permissions required: 'Create Space(s)' global permission.

Implementation

Future<Space> createPrivateSpace({required SpaceCreate body}) async {
  return Space.fromJson(await _client.send(
    'post',
    'wiki/rest/api/space/_private',
    body: body.toJson(),
  ));
}