Update values in custom fields of assets

You can use this API to update the values of the custom fields of assets.

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

Input parameters

Parameter

Type

Required

Description

code

Text

Optional

Code of the asset

id_type_item

Number

Required

Type of asset that the custom field is related to.
Value according to asset type: 1: Locations
2: Equipment
3: Tools
4: Parts and Supplies
5: Digital

id_custom_field

Number

Required

Id of the custom field. This value is obtained from the field ID of the following web service: https://api.fracttal.com/reference/consultar-campos-personalizados-de-los-activos

value

Text

Required

Custom field value

Output parameters

Parameter

Type

Description

id_item

Integer

Asset Id

code

Text

Asset code

description

Text

Description of asset

label_name

Text

Description of the custom field

value

Text

Custom field value

id_custom_field_group

Integer

Custom group ID

id_custom_field_type

Integer

Id of the custom field type

Example:

Petición: (PUT)https://app.fracttal.com/api/items_custom_fields/7543

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

TEST IT

Language