Skip to content

Item Upsert Associate Warehouses

Model for associating warehouses to an asset.


General information:

Module Category
Items Update and Create

ItemUpInsertAssociateWarehouses

Parameters:

  • code: str

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[bool] Indicates whether the asset is active or not. None None
barcode Optional[str] Bar-code. None None
notes Optional[str] Notes or comments. None None
weight Optional[str] Asset weight (for spare parts and tools only) None None
purchase_date Optional[str] Purchase date. None None
is_serial_control Optional[bool] true if the item is controlled by serial, false otherwise. None None
group Optional[str] Asset type. None None
group_1 Optional[str] Classification 1. None None
group_2 Optional[str] Classification 2. None None
priorities Optional[str] Description of priority. None None
id_priority Optional[Priority] Priority ID: 1: Very High, 2: High, 3: Medium, 4: Low, 5: Very Low 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 of the asset. None None
startup_date Optional[str] Start date for depreciation. None None
costs_center Optional[str] Description of the cost center. None None
budgets Optional[str] Total cost of straight-line depreciation. None None
id_custom_field_group Optional[int] Custom field group id. None None
hours_average_daily_use Optional[int] Average daily usage hours (seconds, between 0 and 86400) None None
code_warehouse Optional[str] Warehouse code. None None
id_warehouse Optional[str] Warehouse ID. None None
location Optional[str] Physical location within the warehouse. None None
max_stock_level Optional[str] Maximum stock allowed. None None
min_stock_level Optional[str] Minimum stock allowed. None None
stock Optional[str] Quantity of stock available. None None
unit_cost_stock Optional[str] Unit cost of stock. None None
equivalence Optional[str] Equivalence. None None

Usage example:

{
  "code": "A12345",
  "field_1": "Motor principal",
  "id_type_item": "EQUIPO",
  "code_warehouse": "WH001",
  "id_warehouse": "1",
  "barcode": "1234567890",
  "notes": "Activo en operación",
  "location": "Estante 5",
  "max_stock_level": "500",
  "min_stock_level": "10",
  "stock": "100",
  "unit_cost_stock": "50.00",
  "unit_code": "U001",
  "unit_description": "Unidad estándar",
  "visible_to_all": "True",
  "code_parent_location": "LOC001",
  "equivalence": "EQ001"
}

Notes:

All fields are optional except those required by the schema.