diff --git a/app/controllers/api/database.php b/app/controllers/api/database.php index 9e1f43f5cc..771c430149 100644 --- a/app/controllers/api/database.php +++ b/app/controllers/api/database.php @@ -241,7 +241,7 @@ App::post('/v1/database/collections/:collectionId/attributes') ->param('required', null, new Boolean(), 'Is attribute required?') ->param('signed', true, new Boolean(), 'Is attribute signed?', true) ->param('array', false, new Boolean(), 'Is attribute an array?', true) - ->param('filters', [], new ArrayList(new Text(256)), 'Array of filters.', true) + ->param('filters', [], new ArrayList(new Whitelist(['encrypt', 'json'])), 'Array of filters.', true) ->inject('response') ->inject('dbForExternal') ->inject('audits')