API Endpoints
Fracttal →

Update the person in charge of a WO

With this API you can update the person responsible for a work order in process.

:folio = Code of the work order to be updated

This web service is part of the APIS ADVANCED add-on.

Input parameters

ParameterTypeRequiredDescription
type_userTextYesType of user to whom the TO is to be assigned HUMAN_RESOURCES: Human resource THIRD_PARTIES - Third Party
account_codeTextYesCode of the user account to be registered as the modifier of the WO
rh_codeTextMandatory, if type_user is HUMAN_RESOURCESCode of the human resource to whom the WO will be assigned
third_party_codeTextMandatory, if type_user is THIRD_PARTIESCode of the third party to which the WO is to be assigned
third_party_contactTextMandatory, if type_user is THIRD_PARTIESName of the contact of the third party to be assigned the

Output parameters

ParameterTypeDescription
success BooleanTrue if the insert was successful or false otherwise
message Text200 if successful
dataTextnull

Example:

Request: (PUT)https://app.fracttal.com/api/wo_responsible/OTPRB12552019

{
    "type_user":"HUMAN_RESOURCES",
    "rh_code":"20100691818",
    "account_code":"SV"
}
{
    "success": true,
    "message": "200",
    "data": {
        "id": "[569900,1]",
        "id_work_orders_tasks": 3176750,
        "id_resource": 632896,
        "id_resource_original": 400,
        "description": "CAMERA HEAD ASSY  FUJIFILM 10A10003280 { 10A10003280- }",
        "id_source": 7,
        "source_description": "Almacen Integración Zepeling",
        "source_code": "000010",
        "id_company": 69,
        "id_task": 898004,
        "type": 1,
        "type_description": "INVENTORY",
        "qty": 2,
        "unit_cost": 0,
        "total_cost": 0,
        "qty_delivered": 2,
        "real_qty_used": 2,
        "initial_date": null,
        "final_date": null,
        "code": "10A10003280-",
        "units_description": "CU",
        "is_offline": null,
        "id_status_work_order": 1,
        "id_work_order": 1440469,
        "id_account_offline": null,
        "costs_center_description": "",
        "date_create": "2021-08-27T20:49:03.524678+00:00",
        "units_code": "CU",
        "wo_folio": "OT-1733",
        "external_source": null,
        "note": "Nota del recurso mediante API",
        "id_movements_details": 961370,
        "wo_final_date": null,
        "parent_description": "// Clínica Universidad de los Andes/ "
    },
    "total": 1
}

Test It

Language