API Endpoints
Fracttal →

Create cataloged human-type resources in a WO

By means of this API it is possible to insert within a TO resources in the following way:

-Cataloged: of type inventory, human resources and services -Non-cataloged: of type inventory and services.

Input parameters

ParameterTypeRequiredDescription
cataloguedBooleanYesTrue to insert a cataloged resource, false otherwise. False, default value.
typeNumberYesType of resource to be inserted: 1 : For inventory type resources 2 : For human resources 3 : For service type resources.
codeTextYesCode of the asset associated to the WO. Not to be added when sending the id_work_order_task or barcode.
qtyNumberYesQuantity.
unit_costNumberYesUnit cost.
code_userTextYesCode of the human resource to be added (Only for resources catalogued as human resource type).
rh_descriptionTextOptionalDescription of the human resource profile (Only for resources catalogued as human resources).
code_accountTextYesMust be sent when a cataloged resource is inserted.

Example:

Request: (POST) https://app.fracttal.com/api/wo_resources/OTPRB9742019

{
    "catalogued":true,
    "type": 2,
    "code":"LFR-001",
    "qty":4,  
    "unit_cost":150,
    "code_user": "AMPEREZ",  
    "rh_description": "ELECTRICISTA",
    "code_account":"JCDIAZ"
    
}
{
    "success": true,
    "message": "200",
    "data": {
        "type_description": "HUMAN_RESOURCES",
        "source_description": "Ana Maria Perez",
        "code": "AMPEREZ",
        "description": "ELECTRICISTA",
        "qty": 4,
        "unit_cost": 150,
        "total_cost": 600
    },
    "total": 1
}

Test It

Language