get https://app.fracttal.com/api/items_custom_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
Parameter | Type | Required | Description |
---|---|---|---|
code | Text | Optional | Code of the asset |
item_type | Number | Optional | Type 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 |
start | Integer | Optional | Record number from which the query will start. By default it starts at item 0. |
limit | Integer | Optional | Final record number to be returned by the query. By default 100 records are returned (Maximum 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 |
d_custom_field_group | Integer | Custom group ID |
id_custom_field_type | Integer | Id 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