Fracttal →

Query custom asset fields

Through this API you can query the custom fields of the assets.

You can query the list of all the custom fields of the assets or of a particular asset.

Input parameters

ParameterTypeRequiredDescription
codeTextOptionalCode of the asset
item_typeNumberOptionalType of asset being searched. This field is mandatory, if you want to query the custom fields of a particular asset. Value by Asset Type:
1: Locations
2: Equipment
3: Tools
4: Parts and Supplies
5: Digital
startIntegerOptionalRecord number from which the query will start. By default it starts at item 0.
limit IntegerOptionalFinal record number to be returned by the query. By default 100 records are returned (Maximum value).

Output parameters

ParameterTypeDescription
id_itemIntegerAsset Id
codeTextAsset code
descriptionTextDescription of asset
label_nameTextDescription of the custom field
valueTextCustom field value
d_custom_field_groupIntegerCustom group ID
id_custom_field_typeIntegerId of the custom field type

Example:

Petición: (GET) https://app.fracttal.com/api/items_custom_fields/STTGO-01?item_type=1

{
    "success": true,
    "message": "200",
    "data": [
        {
            "id": 417,
            "id_company": 133,
            "id_item": 10,
            "code": "STTGO-01",
            "description": "SANTIAGO DE CHILE Santiago Santiago Metropolitan { STTGO-01 }",
            "label_name": "Costo de Construcción",
            "value": "",
            "id_custom_field_group": 4,
            "id_custom_field_type": 3
        },
        {
            "id": 544,
            "id_company": 133,
            "id_item": 10,
            "code": "STTGO-01",
            "description": "SANTIAGO DE CHILE Santiago Santiago Metropolitan { STTGO-01 }",
            "label_name": "Norma de Calibracion",
            "value": "",
            "id_custom_field_group": 4,
            "id_custom_field_type": 9
        },
        {
            "id": 548,
            "id_company": 133,
            "id_item": 10,
            "code": "STTGO-01",
            "description": "SANTIAGO DE CHILE Santiago Santiago Metropolitan { STTGO-01 }",
            "label_name": "numero tag",
            "value": "",
            "id_custom_field_group": 4,
            "id_custom_field_type": 1
        },
        {
            "id": 640,
            "id_company": 133,
            "id_item": 10,
            "code": "STTGO-01",
            "description": "SANTIAGO DE CHILE Santiago Santiago Metropolitan { STTGO-01 }",
            "label_name": "Costo Adquisicion",
            "value": "",
            "id_custom_field_group": 4,
            "id_custom_field_type": 3
        },
        {
            "id": 656,
            "id_company": 133,
            "id_item": 10,
            "code": "STTGO-01",
            "description": "SANTIAGO DE CHILE Santiago Santiago Metropolitan { STTGO-01 }",
            "label_name": "Etiqueta...",
            "value": "",
            "id_custom_field_group": 4,
            "id_custom_field_type": 1
        }
    ],
    "total": 5
}

TEST IT

Language