databases_create_datetime_attribute
Add a datetime attribute to Appwrite database collections using ISO 8601 format, enabling structured date and time data storage with configurable requirements and defaults.
Instructions
Create a date time attribute according to the ISO 8601 standard.
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 | No | Default value for the attribute in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Cannot be set when attribute is required. | |
| array | No | Is attribute an array? |