Twake Drive icon

Twake Drive

Basic Twake Drive

Overview

This node integrates with the Twake Drive service to manage files and folders. Specifically, the Create Folder operation under the Folder resource allows users to create a new directory within their Twake Drive instance. Users can specify the name of the new folder and optionally choose a destination directory where this new folder will be created.

Typical use cases include:

  • Automating folder creation for organizing files in Twake Drive.
  • Creating project-specific directories dynamically during workflows.
  • Structuring cloud storage programmatically based on workflow logic.

For example, you might use this node to create a folder named "Invoices 2024" inside a specific parent directory before uploading related files into it.

Properties

Name Meaning
Choose Destination Folder Boolean option to decide whether to specify a custom destination directory for the new folder.
Directory ID The ID of the destination directory where the new folder will be created (used only if "Choose Destination Folder" is true).
Directory Name The name of the new folder to create.

Output

The node outputs JSON data representing the newly created folder's details as returned by the Twake Drive API. This typically includes metadata such as the folder's unique ID, name, creation timestamp, and possibly its path or parent directory information.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Twake Drive service.
  • Needs the Twake Drive instance URL and API token configured in the node credentials.
  • The node uses HTTP requests to communicate with the Twake Drive API endpoints.

Troubleshooting

  • Common issues:

    • Invalid or missing API credentials will cause authentication failures.
    • Specifying a non-existent or unauthorized destination directory ID will result in errors.
    • Providing an empty or invalid folder name may cause the API to reject the request.
  • Error messages:

    • Authentication errors usually indicate problems with the API token or instance URL.
    • "Directory not found" or similar errors suggest the destination directory ID is incorrect or inaccessible.
    • Validation errors from the API may occur if the folder name does not meet naming requirements.
  • Resolutions:

    • Verify that the API credentials are correctly set up and have sufficient permissions.
    • Double-check the destination directory ID if using a custom folder location.
    • Ensure the folder name is valid and not empty.

Links and References

Discussion