databases_create_email_attribute
Add an email attribute to a database collection for storing and validating email addresses, ensuring data integrity through required fields and default values.
Instructions
Create an email attribute.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"database_id": "<database_id>",
"collection_id": "<collection_id>",
"key": "<key>",
"required": "<required>"
},
"name": "databases_create_email_attribute"
}
}Input 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 attribute when not provided. Cannot be set when attribute is required. | |
| array | No | Is attribute an array? |