Opencell icon

Opencell

Consume Opencell API

Overview

The File Explorer - Suppress File operation in this n8n node allows users to delete (suppress) a file from the Opencell server's file system via the Opencell API. This is useful for automating file management tasks, such as cleaning up temporary files, removing outdated reports, or managing user-uploaded content within workflows.

Practical examples:

  • Automatically deleting processed files after data import.
  • Removing sensitive files after encryption and transfer.
  • Cleaning up log or backup files on a schedule.

Properties

Name Type Meaning
Authentication options Selects the authentication method for connecting to the Opencell API (Basic Auth or OAuth2).
Body Content Type hidden Internal property; always set to "multipart-form-data" for this operation.
File Path string The path of the file to be deleted on the Opencell server. Required for this operation.

Output

  • The output will be a JSON object containing the response from the Opencell API after attempting to suppress (delete) the specified file.
  • The structure of the output depends on the Opencell API's response, but typically includes status information or confirmation of deletion.

Example output:

{
  "json": {
    // Response fields from Opencell API, e.g.,
    "status": "SUCCESS",
    "message": "File deleted successfully"
  }
}

Dependencies

  • External Service: Requires access to an Opencell instance with the REST API enabled.
  • Authentication: Needs valid credentials for either Basic Authentication or OAuth2, configured in n8n credentials.
  • n8n Configuration: The node must be properly configured with the correct Opencell API base URL and credentials.

Troubleshooting

Common issues:

  • Invalid File Path: If the File Path does not exist or is incorrect, the API may return an error indicating the file was not found.
  • Permission Denied: Insufficient permissions for the authenticated user can result in authorization errors.
  • Connection Issues: Network problems or incorrect API URLs can cause connection failures.

Common error messages:

  • "File not found": Check that the File Path is correct and the file exists on the server.
  • "Unauthorized" or "Forbidden": Verify that the credentials are correct and have sufficient permissions.
  • "Invalid credentials (unknown error)": Ensure the authentication method and credentials are correctly set up in n8n.

Links and References

Discussion