Hudu icon

Hudu

Interact with Hudu REST API

Public Photo → Get Many

AI-generated

Overview

This node operation retrieves multiple public photos from the Hudu system. It supports fetching all available photos or limiting the number of results returned. Users can apply optional filters to narrow down the photos based on the type of record they are associated with or the specific record ID. Additionally, the results can be wrapped into a single item containing an array of photos and a count, which helps prevent downstream nodes from executing once per photo, reducing the risk of rate limiting.

Use Case Examples

  1. A user wants to fetch all public photos related to a specific article by filtering with the article's record type and ID.
  2. A user needs to retrieve up to 25 public photos without any filters and process them as a single batch to avoid rate limits.

Properties

Name Meaning
Return All Whether to return all results or only up to a given limit.
Limit Maximum number of public photos to return when 'Return All' is false.
Wrap Results in Single Item Whether to return all results as a single item with an 'items' array and 'count' field to prevent downstream nodes from executing once per result item.
Filter Optional filters to narrow down the public photos returned, including filtering by record type and record ID.

Output

JSON

  • items - Array of public photo objects returned when results are wrapped in a single item.
  • count - Count of public photos returned when results are wrapped in a single item.
    - Properties of each public photo object returned when results are not wrapped.

Dependencies

  • Requires an API key credential for Hudu REST API authentication.

Troubleshooting

  • If the resource 'public_photos' is not recognized, the node will throw an error indicating the resource is unknown.
  • If the API call fails due to invalid filters or network issues, the node may throw an error; ensure filters are correctly specified and the API credentials are valid.
  • When 'Wrap Results in Single Item' is enabled, downstream nodes expecting individual items may not function as intended.

Discussion