createSpace method

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

Creates a new space. Note, currently you cannot set space labels when creating a space.

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

Implementation

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