API Endpoints
Fracttal →

Update an asset

Using this API you can update any type of existing asset in Fracttal.

** Only the parameters that need to be updated should be sent.

Input parameters

ParameterTypeRequiredDescription
codeTextRequiredCode ítem
id_type_itemnumberRequiredType of asset. Can be:
1:for Locations
2:for Equipment
3:for Tools
4:for Spare Parts and Supplies 5:for Digital
activeTextOptionalTrue if the asset is active, false otherwise.
barcodeTextOptionalBarcode
notes TextOptionalNotes
weight TextOptionalWeight
is_serial_controlBooleanOptionalTrue when it is a serial controlled item, false otherwise (False default value).
groupTextOptionalType
group_1TextOptionalClassification 1
group_2TextOptionalClassification 2
prioritiesTextOptionalPriority Description
code_parent_locationTextOptionalCode of the asset where it is located or is a part of
latitude TextOptionalLatitude
longitud TextOptionalLongitude
unit_codeTextOptional (If the asset type is Spare or supply it is mandatory)Unit code
unit_descriptionTextOptional (If the asset type is Spare or supply it is mandatory)Description of the unit
visible_to_allBooleanOptionalTrue if the asset can be viewed by everyone in the company
purchase_dateTextOptionalDate of purchase.
Format: 'YYYY-MM-DDTHH:MM:SS-UTC' Exemple:'2016-07-12T20:00:00-03'.
total_costTextOptionalTotal cost
startup_dateTextOptionalStart date for depreciation. Formato: 'YYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00-03'.
costs_centerTextOptionalDescription Cost center
budgetsTextOptionalTotal straight-line depreciation cost

Configurable input parameters to update that vary according to the type of asset:

ParameterTypeRequiredDescription Locations (id_type_item = 1)Description Equipments (id_type_item = 2)Description Tools (id_type_item = 3)Description Spares (id_type_item = 4)Description Digital (id_type_item = 5)
field_1TextyesNameNameNameNameName
field_2TextOptionalAddressManufacturerPart numberPart numberManufacturer
field_3TextOptionalCityModelManufacturerManufacturerSerial number
field_4TextOptionalArea codeSerial numberModelModelVersion
field_5TextOptionalDepartment / State / RegionOther 1Other 1Other 1
field_6TextOptionalCountryOther 2Other 2Other 2

For the updating of the assets, you must send the mandatory fields and the parameters with the additional values you wish to insert. Do not send the parameters that are not mandatory in blank .

Output parameters

ParameterTypeDescription
successBooleanTrue if the insert was successful or false otherwise
messageText200 if successful
dataTextJSON with inserted item
totalnumberNumber of records inserted (Always 1)200 if successful

Example:

Petición: (PUT) https://app.fracttal.com/api/items/EQM028*

{
	"id_type_item":2,
	"field_1":"REFRIGERADOR DE VACUNAS",
	"field_2":"SAMSUNG",
	"field_3":"C13 D",
	"field_4":"001827",
	"field_5":"02 RACKS",
	"field_6":"750X580X390",
	"barcode":"123987123AAC",
	"priorities":"Muy Alta",
	"purchase_date":"2015-10-27T20:00:00-05",
	"is_serial_control":"false",
	"is_tool":"false",
	"active":"true"
}

Test IT

Language