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.
Input parameters
| Parámetro | Tipo | Requerido | Descripción | 
|---|---|---|---|
| catalogued | Boolean | Yes | True to insert a cataloged resource, false otherwise. False, default value. | 
| 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. | 
| code_resource | Text | Yes | Code of the cataloged resource to be inserted (only for inventory type cataloged resources). | 
| code_warehouse | Text | Yes | Code of the warehouse from where the resource is needed (only for resources catalogued as inventory type). | 
| qty | Number | Yes | Quantity. | 
| unit_cost | Number | Yes | Unit cost. | 
| code_account | Text | Yes | Must be sent when a cataloged resource is inserted. | 
Catalogued Resource - Inventory
Request: (POST)https://app.fracttal.com/api/wo_resources/OTPRB9742019
{
    "catalogued":true,
    "type": 1,
    "code":"LFR-001",
    "qty":3,  
    "unit_cost":100,
    "code_resource": "MRX-EN-003",  
    "code_warehouse": "MRX-005",
    "code_account":"JCDIAZ"    
}{
    "success": true,
    "message": "200",
    "data": {
        "type_description": "INVENTORY",
        "description": "000 HERRAMIENTA PARA EXISTENCIA NEG MRX 3    { MRX-EN-003 }",
        "code": "MRX-EN-003",
        "units_description": "C/U                 ",
        "units_code": "C/U       ",
        "qty": 3,
        "unit_cost": 100,
        "total_cost": 300
    },
    "total": 1
}Test It
