def METHOD_NAME(user):
    return self.request('/folder/%s' % self.f1['_id'], method='PUT', params={
        'isVirtual': True,
        'virtualItemsQuery': json.dumps({'foo': 'bar'}),
        'virtualItemsSort': json.dumps([('meta.someVal', SortDir.DESCENDING)])
    }, user=user)