Hudu icon

Hudu

Interact with Hudu REST API

Asset Layout → Create

AI-generated

Overview

This node operation creates a new Asset Layout in the Hudu system. It is useful for users who want to define custom layouts for assets, specifying how asset information is organized and displayed. For example, a user can create an Asset Layout with a specific name, set it as active or inactive, choose colors and icons, and decide which types of information (comments, files, passwords, photos) to include. Additionally, users can define custom fields within the layout, specifying field types, labels, positions, and other attributes.

Use Case Examples

  1. Creating a new Asset Layout named 'Office Equipment' with a blue background color and an icon representing a computer.
  2. Defining an Asset Layout that includes comments and files but excludes passwords and photos.
  3. Adding custom fields to the Asset Layout such as a text field for 'Serial Number', a date field for 'Purchase Date', and a checkbox for 'Under Warranty'.

Properties

Name Meaning
Name The name of the Asset Layout to be created.
Additional Fields Optional settings for the Asset Layout such as whether it is active, color and icon customization, and inclusion of comments, files, passwords, and photos.
Fields to Add/Update Custom fields to add or update in the Asset Layout, including field type, label, position, and other attributes.

Output

JSON

  • id - The unique identifier of the created Asset Layout.
  • name - The name of the created Asset Layout.
  • active - Indicates if the Asset Layout is active.
  • color - The background color of the Asset Layout in hex code.
  • icon - The Font Awesome icon code used for the Asset Layout.
  • icon_color - The color of the icon in hex code.
  • include_comments - Whether comments are included in the Asset Layout.
  • include_files - Whether files are included in the Asset Layout.
  • include_passwords - Whether passwords are included in the Asset Layout.
  • include_photos - Whether photos are included in the Asset Layout.
  • password_types - List of password types included in the Asset Layout.
  • fields - Array of custom fields added or updated in the Asset Layout, each with properties like type, label, position, and other attributes.

Dependencies

  • Hudu REST API
  • API key credential for authentication

Troubleshooting

  • Ensure the API key credential is correctly configured and has permissions to create Asset Layouts.
  • Verify that required fields such as 'Name' are provided and valid.
  • Check that any list IDs used in fields are valid numeric IDs.
  • If the node throws an error about unknown resource, confirm that 'asset_layouts' is correctly specified as the resource.

Links

Discussion