Decogro icon

Decogro

Decogro integration for n8n

Files → Upload File

AI-generated

Overview

This node integrates with the Decogro API to perform various operations related to files, orders, contacts, companies, and administrative data. Specifically, for the 'Files' resource and 'Upload File' operation, it uploads a binary file to Decogro. This is useful for automating file uploads such as product images, documents, or other media directly from n8n workflows to Decogro's file management system.

Use Case Examples

  1. Uploading product images to Decogro when new products are added in an e-commerce system.
  2. Automating the upload of design files to Decogro for order processing.

Properties

Name Meaning
Binary Property Name of the binary property which contains the data to be uploaded. This tells the node which binary data from the input item to use for the file upload.

Output

JSON

  • operation - The operation performed, e.g., 'uploadFile'.
  • data - The response data returned from Decogro API after uploading the file.
  • metadata
    • method - HTTP method used for the request, typically 'POST' for file upload.
    • endpoint - API endpoint used for the upload, e.g., 'files/upload'.
    • filename - The name of the uploaded file.
    • mimeType - The MIME type of the uploaded file.
    • timestamp - Timestamp when the upload operation was performed.

Dependencies

  • Requires Decogro API credentials including base URL and API key for authentication.

Troubleshooting

  • If the specified binary property does not exist on the input item, the node throws an error indicating the missing binary data property. Ensure the binary property name matches the input data.
  • Invalid JSON body errors can occur if the JSON input for other operations is malformed; verify JSON syntax if using other operations.
  • HTTP errors from the Decogro API (e.g., authentication failures, invalid endpoints) will be thrown; check API credentials and endpoint correctness.

Links

  • Decogro API Documentation - Official API documentation for Decogro, useful for understanding endpoints and request formats.

Discussion