Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Database → Create
AI-generatedOverview
This node interacts with the Appwrite API to perform operations on various resources. Specifically, for the Database resource with the Create operation, it allows users to create a new database in Appwrite by specifying properties such as a unique database ID, the database name, and whether the database is enabled. This is useful for automating database creation within Appwrite as part of workflows, such as setting up new projects or environments programmatically.
Use Case Examples
- Creating a new database with a unique ID and a specified name to organize data for a new application.
- Enabling or disabling a database dynamically based on workflow conditions.
Properties
| Name | Meaning |
|---|---|
| Database ID | The ID of the database. Use unique() to generate a unique ID. |
| Name | The name of the database to be created. |
| Enabled | Whether the database is enabled or not. |
Output
JSON
id- The unique identifier of the created database.name- The name of the created database.enabled- The enabled status of the created database.createdAt- Timestamp when the database was created.
Dependencies
- Appwrite API key credential for authentication
Troubleshooting
- Common issues include invalid or missing API credentials, which will cause authentication failures.
- Errors may occur if the database ID is not unique or if required parameters like the database name are missing.
- Network or endpoint configuration issues can prevent successful API calls.
Links
- Appwrite Database Create API - Official documentation for creating databases using the Appwrite API.