Hudu icon

Hudu

Interact with Hudu REST API

Photo → Update

AI-generated

Overview

This node operation updates a photo record in the Hudu system. It allows users to modify various attributes of a photo such as its archived status, caption, folder location, attachment to other records, and pinned status. This operation is useful for managing photo metadata and organization within Hudu, for example, updating a photo's caption or moving it to a different folder.

Use Case Examples

  1. Updating the caption of a photo to provide a more descriptive title.
  2. Archiving a photo to remove it from active views without deleting it.
  3. Moving a photo to a different folder to better organize assets.
  4. Pinning a photo to highlight it in the interface.

Properties

Name Meaning
Photo ID The ID of the photo to update, used to identify which photo record to modify.
Photo Update Fields A collection of fields that can be updated on the photo, including archived status, caption, folder ID, photoable ID and type, and pinned status.

Output

JSON

  • id - The unique identifier of the updated photo.
  • archived - The archived status of the photo after update.
  • caption - The updated caption/title of the photo.
  • folder_id - The folder ID where the photo is located after update.
  • photoable_id - The ID of the record the photo is attached to after update.
  • photoable_type - The type of record the photo is attached to after update.
  • pinned - The pinned status of the photo after update.

Dependencies

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

Troubleshooting

  • Common issues include providing an invalid or non-existent Photo ID, which will cause the update to fail.
  • Incorrect data types or missing required fields in the photo update fields can cause errors.
  • API authentication failures due to invalid or missing credentials.
  • Network or connectivity issues when calling the Hudu API.

Links

  • Hudu API - Photos - Official Hudu API documentation for managing photos, including update operations.

Discussion