Skip to content

Item Update

Model to update an existing asset.


General information:

Module Category
Items Update

ItemUpdate

Parameters:

  • code: str (required)

Input parameters:

Field Type Required Description Default Value Examples
code str Unique asset code. PydanticUndefined None
id_type_item str Asset type. PydanticUndefined None
field_1 str Name or main description of the asset. PydanticUndefined None
field_2 Optional[str] Additional field 2. None None
field_3 Optional[str] Additional field 3. None None
field_4 Optional[str] Additional field 4. None None
field_5 Optional[str] Additional field 5. None None
field_6 Optional[str] Additional field 6. None None
active Optional[str] Asset status. None None
barcode Optional[str] Bar-code. None None
notes Optional[str] Notes or comments. None None
weight Optional[str] Asset weight. None None
purchase_date Optional[str] Purchase date. None None
is_serial_control Optional[str] Serial control. None None
group Optional[str] Main group. None None
group_1 Optional[str] Subgroup 1. None None
group_2 Optional[str] Subgroup 2. None None
priorities Optional[str] Description of priority. None None
id_priority Optional[str] Priority. None None
code_parent_location Optional[str] Parent location code. None None
latitude Optional[str] Latitude. None None
longitud Optional[str] Length. None None
unit_code Optional[str] Unit code. None None
unit_description Optional[str] Description of the unit. None None
visible_to_all Optional[str] Global visibility. None None
total_cost Optional[str] Total cost. None None
startup_date Optional[str] Startup date. None None
costs_center Optional[str] Cost center. None None
budgets Optional[str] Associated budget. None None
id_custom_field_group Optional[str] Custom field group ID. None None
hours_average_daily_use Optional[int] Average daily usage hours (seconds, between 0 and 86400) None None

Usage example:

{
  "code": "A12345",
  "id_type_item": "EQUIPO",
  "field_1": "Motor principal",
  "field_2": "Adicional 2",
  "active": "True",
  "barcode": "1234567890",
  "notes": "Activo en operación",
  "weight": "120kg",
  "is_serial_control": "False",
  "group": "Motores",
  "group_1": "Industriales",
  "group_2": "Alta potencia",
  "id_priority": "ALTA",
  "code_parent_location": "LOC001",
  "latitude": "-33.4489",
  "longitud": "-70.6693",
  "unit_code": "U001",
  "unit_description": "Unidad estándar",
  "visible_to_all": "True",
  "purchase_date": "2023-01-01T00:00:00-03",
  "total_cost": "10000.00",
  "startup_date": "2023-01-10T00:00:00-03",
  "costs_center": "CC001",
  "budgets": "15000.00",
  "id_custom_field_group": "1"
}

Notes:

All fields are optional except those required by the schema.