Through this API the custom field assets values can be updated.

To use this API, the asset must previously have the catalog or group of custom fields related to it.

EndPoint

(PUT)
https://app.fracttal.com/api/items_custom_fields/{code}

code: Asset code
Method PUT

Body Parameters

Parameters

Type of field

Required

Description

code

text

Optional

Asset code.

id_type_item

Number

Yes

Asset type that the custom field is related to. Value according to the type of asset:
1: Locations
2: Equipment
3: Tools
4: Spare Parts
5: Digitals

id_custom_field

Number

Yes

Custom field id. This value is obtained from the ID field of the following web service https://ayuda.fracttal.com/articulos/get-consultar-campos-personalizados-de-los-activos/

value

Text

Yes

Custom field value

Output Parameters

Parameter

Type of field

Description

id_item

Entire

Asset id

code

Text

Asset code

description

Text

Asset description

label_name

Text

Custom Field description

value

Text

Custom field value

id_custom_field_group

Entire

Custom group id

id_custom_field_type

Entire

Custom field id

Example:
Petition: (PUT) https://app.fracttal.com/api/items_custom_fields/7543

Body:

{ 
"id_type_item": 1,
"id_custom_field": "7",
"value":"40.00"
}

Example Response:

{ 
"success": true,
"message": "200",
"data": [
{
"id": 7,
"id_company": 69,
"id_item": 1,
"code": "7543",
"description": "REFRIGERADOR DE VACUNAS SAMSUNG C13 D 000000 Región Metropolitana Chile { 7543 }",
"label_name": "Moneda",
"value": "32,96",
"id_custom_field_group": 1,
"id_custom_field_type": 3
},
],
"total": 5
}

Did this answer your question?