Hudu icon

Hudu

Interact with Hudu REST API

Upload → Create

AI-generated

Overview

This node operation allows users to upload a file to a specified record type within the Hudu system. It is useful for attaching files such as documents or images to various record types like Articles, Assets, Companies, Procedures, or Websites. For example, a user can upload a maintenance manual PDF to an Asset record or attach a company logo image to a Company record.

Use Case Examples

  1. Uploading a PDF file to an Asset record for documentation purposes.
  2. Attaching an image file to a Company record to maintain branding assets.

Properties

Name Meaning
File The name of the binary property containing the file to upload. This is required to specify which file from the input data should be uploaded.
Uploadable Type The type of record to which the file will be attached. Options include Article, Asset, Asset Password, Company, Procedure, and Website.
Uploadable ID The ID of the specific record to which the file will be attached. This must be a positive number and is required.

Output

JSON

  • id - The unique identifier of the uploaded file record.
  • uploadable_type - The type of record the file was attached to.
  • uploadable_id - The ID of the record the file was attached to.
  • file_name - The name of the uploaded file.
  • file_size - The size of the uploaded file in bytes.
  • created_at - Timestamp when the file was uploaded.

Dependencies

  • Hudu REST API
  • API authentication token (credential)

Troubleshooting

  • Ensure the binary property name specified in 'File' exists in the input data and contains valid file data.
  • Verify that the 'Uploadable Type' and 'Uploadable ID' correspond to existing records in the Hudu system to avoid attachment errors.
  • Check API credentials and network connectivity if the upload fails due to authentication or communication issues.

Links

Discussion