Hudu icon

Hudu

Interact with Hudu REST API

Asset Layout Field → Update

AI-generated

Overview

This node operation updates an existing Asset Layout Field in the Hudu system. It allows users to modify various attributes of a field within an asset layout, such as its type, position, options, and other metadata. This operation is useful for maintaining and customizing asset layouts to fit evolving organizational needs, such as changing field types, adding hints, or setting validation constraints.

Use Case Examples

  1. Updating the field type of an asset layout field from 'Text' to 'Number'.
  2. Setting a field as required and specifying its position within the layout.
  3. Adding options to a list-type field to allow multiple selections.

Properties

Name Meaning
Asset Layout Name or ID The identifier or name of the asset layout containing the field to update. This is required to specify which asset layout the field belongs to.
Field Name or ID The identifier or name of the specific field within the asset layout to update. This is required to specify which field to modify.
Asset Layout Field Update Fields A collection of fields representing the attributes to update on the asset layout field. This includes properties like expiration tracking, field type, hint text, destruction status, linked asset layouts, list options, min/max values, position, required status, and visibility in list views.

Output

JSON

  • id - The unique identifier of the updated asset layout field.
  • name - The name of the updated asset layout field.
  • field_type - The type of the updated field.
  • position - The position of the field within the asset layout.
  • required - Indicates if the field is required.
  • show_in_list - Indicates if the field is shown in list views.

Dependencies

  • Hudu REST API
  • An API key credential for authentication

Troubleshooting

  • Ensure the Asset Layout ID and Field ID are correctly specified; incorrect IDs will cause errors.
  • Verify that the API credentials are valid and have sufficient permissions to update asset layout fields.
  • If the update fields collection is empty or contains invalid values, the update may fail or have no effect.
  • Common error messages include 'Resource not known' if the resource parameter is incorrect, or API errors related to invalid field types or constraints.

Links

Discussion