Hudu icon

Hudu

Interact with Hudu REST API

Public Photo → Update

AI-generated

Overview

This node operation updates a public photo record in the Hudu system. It is useful for scenarios where you need to change the association of a public photo to a different record type or record ID, such as linking a photo to a different article or entity within Hudu. For example, if a photo was initially linked to one article but needs to be reassigned to another, this operation facilitates that update.

Use Case Examples

  1. Updating the record type and record ID of a public photo to associate it with a different article or entity.
  2. Changing the linkage of a public photo from one record to another within the Hudu platform.

Properties

Name Meaning
Photo ID Numeric ID of the photo to update. Use the numeric_id (integer) field from a prior Get Many result, NOT the slug string id field — the API returns 404 for slug values.
Record Type The updated type of record the photo is associated with (e.g., Article).
Record ID The ID of the record the photo will be associated with.

Output

JSON

  • id - The unique identifier of the updated public photo.
  • record_type - The updated type of record the photo is associated with.
  • record_id - The updated ID of the record the photo is associated with.

Dependencies

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

Troubleshooting

  • Ensure the Photo ID is the numeric ID, not the slug string ID, as using the slug will result in a 404 error from the API.
  • Verify that the Record Type and Record ID are valid and exist in the Hudu system to avoid update failures.
  • Check API authentication credentials if requests fail due to authorization errors.

Discussion