databases_update_email_attribute
Modify an email attribute in an Appwrite database collection to change requirements, default values, or rename the attribute key for data structure management.
Instructions
Update an email 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. | |
| new_key | No | New attribute key. |