Skip to content

Update Item Custom Fields

Model to update the custom fields of an item.


General information:

Module Category
Items Update

Molecule details

Input schema:

Field Type Required Description Default value Examples
code str Item code. PydanticUndefined -
id_type_item Optional[str] Item type. None -
field_1 str Asset name. PydanticUndefined -
field_2 Optional[str] Address / Manufacturer / Part Number / Part Number / Manufacturer (depending on asset type) None -
field_3 Optional[str] City / Model / Manufacturer / Manufacturer / Serial number (depending on asset type) None -
field_4 Optional[str] Area code / Serial number / Model / Model / Version (depending on asset type) None -
field_5 Optional[str] Department / State / Region / Other 1 / Other 1 / Other 1 None -
field_6 Optional[str] Country / Other 2 / Other 2 / Other 2 None -
active Optional[bool] Indicates whether the asset is active or not. None -
barcode Optional[str] Bar-code. None -
notes Optional[str] Asset notes. None -
weight Optional[str] Asset weight (for spare parts and tools only) None -
purchase_date Optional[str] Purchase date. None -
is_serial_control Optional[bool] true if the item is controlled by serial, false otherwise. None -
group Optional[str] Asset type. None -
group_1 Optional[str] Classification 1. None -
group_2 Optional[str] Classification 2. None -
priorities Optional[str] Description of priority. None -
id_priority Optional[Priority] Priority ID: 1: Very High, 2: High, 3: Medium, 4: Low, 5: Very Low None -
code_parent_location Optional[str] Code of the asset where it is located or is part of (POST/PUT) None -
latitude Optional[str] Latitude. None -
longitud Optional[str] Length. None -
unit_code Optional[str] Unit code (mandatory if it is a Tool or Spare Part) None -
unit_description Optional[str] Description of the unit (required if it is a Tool or Spare Part) None -
visible_to_all Optional[bool] Indicates whether the asset will be visible to everyone in the company. None -
total_cost Optional[str] Total cost of the asset. None -
startup_date Optional[str] Start date for depreciation. None -
costs_center Optional[str] Description of the cost center. None -
budgets Optional[str] Total cost of straight-line depreciation. None -
id_custom_field_group Optional[int] Custom field group id. None -
hours_average_daily_use Optional[int] Average daily usage hours (seconds, between 0 and 86400) None -
id_custom_field Optional[int] ID of the custom field. None -
label_name Optional[str] Custom field name. None -
value Any Value to update. PydanticUndefined -

Usage example:

[
  {
    "code": "A12345",
    "id_custom_field": 1,
    "value": "Nuevo valor"
  }
]

Notes:

If both are included, priority will be given to id_custom_field.