post https://app.fracttal.com/api/wo_resources/:id
By means of this API it is possible to insert within a WO resources in the following way:
-Cataloged: of type inventory, human resources and services -Non-cataloged: of type inventory and services.
id = Id/wo_folio of the work order
Input parameters
Parameter | Type | Required | Description |
---|---|---|---|
type | Number | Yes | Type of resource to be inserted: 1 : For inventory type resources 2 : For human resources 3 : For service type resources |
code | Text | Yes | Code of the asset associated to the WO. Not to be added when sending the id_work_order_task or barcode. |
qty | Number | Yes | Quantity. |
unit_cost | Number | Yes | Unit cost. |
description | Text | Yes | Description of the resource or service (Only for non-cataloged resources and for cataloged service-type resources). |
external_source | Text | Optional | External source (Only for non-catalogued resources). |
Example:
Request: (POST) https://app.fracttal.com/api/wo_resources/OTPRB9742019
{
"type": 1,
"code":"LFR-001",
"qty":3,
"unit_cost":240,
"description": "INVENTARIO NO CATALOGADO",
"external_source": "ALMACEN NO CATALOGADO"
}
{
"success": true,
"message": "200",
"data": {
"type_description": "INVENTORY",
"description": "INVENTARIO NO CATALOGADO",
"code": null,
"units_description": null,
"units_code": null,
"qty": 3,
"unit_cost": 240,
"total_cost": 720
},
"total": 1
}
Test It