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

Parameter

Type

Required

Description

type_user

Text

Yes

Type of user to whom the TO is to be assigned HUMAN_RESOURCES: Human resource THIRD_PARTIES - Third Party

account_code

Text

Yes

Code of the user account to be registered as the modifier of the WO

rh_code

Text

Mandatory, if type_user is HUMAN_RESOURCES

Code of the human resource to whom the WO will be assigned

third_party_code

Text

Mandatory, if type_user is THIRD_PARTIES

Code of the third party to which the WO is to be assigned

third_party_contact

Text

Mandatory, if type_user is THIRD_PARTIES

Name of the contact of the third party to be assigned the

Output parameters

Parameter

Type

Description

success
  • Boolean*

True if the insert was successful or false otherwise

message

Text

200 if successful

data

Text

null

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