Through this API you can consult the custom fields of assets.
Can be consulted the list of all custom fields of the assets or of a particular asset.
EndPoint
https://app.fracttal.com/api/items_custom_fields/{code}
code: Asset code
Method GET
Input Parameters
Parameter | Type of field | Required | Description |
code | text | Optional | Asset code. |
item_type | Number | Optional | Type of asset being searched for. This field is mandatory, if you want to consult the custom fields of a particular asset. Value according to the type of asset: |
start | Entire | Optional | Record number from which the query will start. By default it starts at item 0. |
limit | Entire | Optional | Final record number that the query will return. By default 100 records are returned (Maximum value) |
Output parameters
Parameter | Type of field | Description |
id_item | Entire | Id of the asset |
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 type id |
Example:
Petition: (GET) https://app.fracttal.com/api/items_custom_fields/STTGO-01?item_type=1
Example Response:
{
"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": "Cost 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
}