Hudu icon

Hudu

Interact with Hudu REST API

List → Update

AI-generated

Overview

This node operation updates an existing list in the Hudu system. It allows users to specify the list by its name or ID and modify its properties, including the list's name and its items. Users can add new items, update existing items by their ID, or remove items by marking them for destruction. This operation is useful for managing and maintaining lists dynamically within workflows, such as updating task lists, inventory lists, or any other categorized data collections.

Use Case Examples

  1. Updating the name of a list to reflect a new project phase.
  2. Adding new items to a task list while removing completed tasks.
  3. Modifying an inventory list by updating item names and removing obsolete items.

Properties

Name Meaning
List Name or ID The identifier or name of the list to update. This can be selected from existing lists or specified using an expression.
Name The new name to assign to the list being updated.
List Items A collection of list items to add, update, or remove. Existing items require their ID for updates or deletions, new items require only a name, and items to be removed are marked with a destroy flag along with their ID.

Output

JSON

  • id - The unique identifier of the updated list.
  • name - The updated name of the list.
  • list_items_attributes - The updated collection of list items, reflecting additions, modifications, or removals.

Dependencies

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

Troubleshooting

  • Ensure the list ID or name specified exists; otherwise, the update will fail with a resource not found error.
  • When updating list items, provide valid IDs for existing items to update or remove; missing or incorrect IDs may cause errors.
  • If the API key credential is invalid or missing, authentication errors will occur.

Discussion