mittwald icon

mittwald

Interact with mittwald mStudio API

Actions409

Overview

This node operation, App Replace Database, is designed to replace an existing database associated with a specific app installation with a new database. It also allows specifying which users should have access to the new database. This can be useful in scenarios where an app's backend database needs to be migrated or updated without changing the app installation itself.

Practical examples:

  • Migrating an app’s data from an old database to a new one while preserving user access.
  • Updating the database for an app installation after restructuring or upgrading the database schema.
  • Switching the app’s backend to a different database instance for performance or cost reasons.

Properties

Name Meaning
App Installation Id The ID of the app installation for which the database replacement will occur.
Database User Ids JSON object containing the IDs of users who should be assigned to the new database.
New Database Id The ID of the new database that will replace the old one.
Old Database Id The ID of the current database that will be replaced.

Output

The node outputs JSON data representing the result of the database replacement operation. This typically includes confirmation details such as success status, updated app installation info, or error messages if the operation failed.

No binary data output is indicated by the source code or properties.

Dependencies

  • Requires an API key credential for authentication with the mittwald mStudio API.
  • The node communicates with the mittwald API endpoint at https://api.mittwald.de.
  • Proper configuration of the API credential within n8n is necessary for successful requests.

Troubleshooting

  • Common issues:

    • Invalid or missing App Installation Id, New Database Id, or Old Database Id may cause the operation to fail.
    • Incorrectly formatted JSON in Database User Ids could lead to request errors.
    • Authentication failures due to invalid or expired API credentials.
    • Network connectivity issues preventing communication with the mittwald API.
  • Error messages and resolutions:

    • "Unauthorized" or "Authentication failed": Check and update the API key credential.
    • "Invalid database ID" or "App installation not found": Verify that the provided IDs are correct and exist.
    • "Malformed JSON" in Database User Ids: Ensure the JSON input is valid and properly formatted.
    • Timeout or network errors: Confirm network connectivity and API availability.

Links and References

Discussion