diff --git a/app/controllers/api/database.php b/app/controllers/api/database.php index a41a4fa625..da3cfc68b0 100644 --- a/app/controllers/api/database.php +++ b/app/controllers/api/database.php @@ -945,9 +945,9 @@ App::post('/v1/database/collections/:collectionId/attributes/integer') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).') ->param('key', '', new Key(), 'Attribute Key.') ->param('required', null, new Boolean(), 'Is attribute required?') - ->param('min', null, new Integer(true), 'Minimum value to enforce on new documents', true) - ->param('max', null, new Integer(true), 'Maximum value to enforce on new documents', true) - ->param('default', null, new Integer(true), 'Default value for attribute when not provided. Cannot be set when attribute is required.', true) + ->param('min', null, new Integer(), 'Minimum value to enforce on new documents', true) + ->param('max', null, new Integer(), 'Maximum value to enforce on new documents', true) + ->param('default', null, new Integer(), 'Default value for attribute when not provided. Cannot be set when attribute is required.', true) ->param('array', false, new Boolean(), 'Is attribute an array?', true) ->inject('response') ->inject('dbForProject')