post
https://app.fracttal.com/api/items_equivalents/
Associate equivalent assets
Through this API you can associate equivalent spare parts or supplies to an asset in bulk.
Input Parameters
The following information must be sent in the request body, as an array of objects.
| Parameter | Type | Required | Description |
|---|---|---|---|
item_code | Text | Yes | Asset code (spare part or supply type) |
equivalent_code | Text | Yes | Equivalent asset code (spare part or supply type) |
Output Parameters
| Parameter | Type | Description |
|---|---|---|
id | Integer | ID of the created equivalence |
item_code | Text | Asset code (spare part or supply type) |
equivalent_code | Text | Equivalent asset code (spare part or supply type) |
Example
Request: (POST) https://app.fracttal.com/api/items_equivalents_post
[{
"item_code": "Repuesto",
"equivalent_code": "R1"
},
{
"item_code": "Repuesto",
"equivalent_code": "R2"
}]{
"success": true,
"message": "200",
"data": [
{
"id": 5494,
"item_code": "Repuesto",
"equivalent_code": "R1"
},
{
"id": 5495,
"item_code": "Repuesto",
"equivalent_code": "R2"
}
],
"total": 2
}