databases_update_integer_attribute
Modify integer attribute properties in Appwrite databases, including required status, default values, and value range constraints for new documents.
Instructions
Update an integer attribute. Changing the default value will not update already existing documents.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_id | Yes | Database ID. | |
| collection_id | Yes | Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). | |
| key | Yes | Attribute Key. | |
| required | Yes | Is attribute required? | |
| default | Yes | Default value for attribute when not provided. Cannot be set when attribute is required. | |
| min | No | Minimum value to enforce on new documents | |
| max | No | Maximum value to enforce on new documents | |
| new_key | No | New attribute key. |