removePermission method

Future<void> removePermission({
  1. required String spaceKey,
  2. required int id,
})

Removes a space permission. Note that removing Read Space permission for a user or group will remove all the space permissions for that user or group.

Note: Apps cannot access this REST resource - including when utilizing user impersonation.

Permissions required: 'Admin' permission for the space.

Implementation

Future<void> removePermission(
    {required String spaceKey, required int id}) async {
  await _client.send(
    'delete',
    'wiki/rest/api/space/{spaceKey}/permission/{id}',
    pathParameters: {
      'spaceKey': spaceKey,
      'id': '$id',
    },
  );
}