createGroup method

Future<Group> createGroup({
  1. required AddGroupBean body,
})

Creates a group.

Permissions required: Site administration (that is, member of the site-admin group).

Implementation

Future<Group> createGroup({required AddGroupBean body}) async {
  return Group.fromJson(await _client.send(
    'post',
    'rest/api/3/group',
    body: body.toJson(),
  ));
}