Update Asset Layout
hudu_update_asset_layoutUpdate an asset layout's name, icon, color, active flag, and file/photo/password/comment toggles. Only sent fields are applied and replace old values, so fetch the layout first.
Instructions
Update an existing asset layout. An asset layout is the template behind an asset type: its icon and colour, whether its assets can hold passwords, photos, comments and files, and the set of custom fields every asset of that type carries. Layouts are instance-wide rather than per-company. Field definitions can be set when a layout is created; the documented shape for changing them afterwards contradicts the shape creation accepts, so this server does not expose field edits on update. There is no delete endpoint for layouts — set active: false to retire one.
Only the fields you supply are sent. Be aware that Hudu applies these as a PUT: for fields you do send, the new value replaces the old one outright — read the record first with hudu_get_asset_layout if you intend to append rather than overwrite.
Operation class: Update. Impact: Overwrites the supplied fields on this asset layout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Numeric Hudu id of the asset layout. | |
| icon | No | Font Awesome icon class shown next to assets of this type, e.g. "fas fa-server". | |
| name | No | Name of the layout, e.g. "Server" or "Licence". | |
| color | No | Background colour as a hex code, e.g. "#2E86C1". | |
| active | No | false retires the layout without deleting it. Layouts have no delete endpoint, so this is the only way to take one out of use. | |
| icon_color | No | Icon colour as a hex code, e.g. "#FFFFFF". | |
| include_files | No | Whether assets of this type can hold file attachments. | |
| include_photos | No | Whether assets of this type can hold photos. | |
| password_types | No | Password categories offered on assets of this type, as one string with each category on its own line (newline-separated, not an array). | |
| include_comments | No | Whether assets of this type can hold comments. | |
| include_passwords | No | Whether assets of this type can hold linked passwords. |