removeMemberFromGroupByGroupId method

Future<void> removeMemberFromGroupByGroupId({
  1. required String groupId,
  2. String? key,
  3. String? username,
  4. String? accountId,
})

Remove user as a member from a group.

Permissions required: User must be a site admin.

Implementation

Future<void> removeMemberFromGroupByGroupId(
    {required String groupId,
    String? key,
    String? username,
    String? accountId}) async {
  await _client.send(
    'delete',
    'wiki/rest/api/group/userByGroupId',
    queryParameters: {
      'groupId': groupId,
      if (key != null) 'key': key,
      if (username != null) 'username': username,
      if (accountId != null) 'accountId': accountId,
    },
  );
}