Hudu icon

Hudu

Interact with Hudu REST API

Photo → Create

AI-generated

Overview

This node operation allows users to create a photo entry in the Hudu system by uploading an image file along with associated metadata. It is useful for scenarios where users want to programmatically add photos to their Hudu account, such as attaching images to companies, assets, or articles within their documentation or asset management workflows.

Use Case Examples

  1. Uploading a company logo or asset image with a caption and associating it with a specific company or folder.
  2. Adding a photo to an article or documentation page with a descriptive caption and optional metadata like pinned status or attachment type.

Properties

Name Meaning
File The name of the binary property containing the image file to upload, required for the photo creation.
Caption Caption or title for the photo, required to describe the photo content.
Additional Fields Optional metadata fields to specify additional details about the photo, such as company association, folder placement, attachment record ID and type, and whether the photo should be pinned.

Output

JSON

  • id - Unique identifier of the created photo.
  • caption - Caption or title of the created photo.
  • url - URL link to access the uploaded photo.
  • company_id - ID of the company the photo belongs to, if specified.
  • folder_id - ID of the folder containing the photo, if specified.
  • photoable_id - ID of the record the photo is attached to, if specified.
  • photoable_type - Type of record the photo is attached to, if specified.
  • pinned - Indicates if the photo is pinned.

Dependencies

  • Requires an API key credential for authenticating with the Hudu REST API.

Troubleshooting

  • Common issues include missing or incorrect binary property name for the image file, resulting in upload failure.
  • Errors may occur if required fields like caption are missing or if invalid IDs are provided for company, folder, or attachment records.
  • API authentication errors if the API key credential is not set or invalid.
  • Ensure the photo file is in a supported image format and not corrupted.

Links

Discussion