Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Database → Create

AI-generated

Overview

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

  1. Creating a new database with a unique ID and a specified name to organize data for a new application.
  2. 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

Discussion