Fracttal →

Update values to subtasks within WOs

Through this web service you can update the value of a subtask within a WO in process or revision.

The types of subtasks that can be updated are:

  • Text + Number + Yes/No + Verification.

Input parameters

ParameterTypeRequiredDescription
id_work_orders_tasks_form_items TextYesID of the subtask within the WO.
ValueTextYes
Id typeTypePossible values
1Text Free text
2Yes/NoTrue, false, N/A
3NumberValues of type number
4Verification1 (Pass), 2 (Alert) 3 (Fail)
.

Output parameters

ParameterTypeDescription
id_work_orders_tasks_form_itemsNumberSubtask ID within the WO
valueTextSubtask value
descriptionTextSubtask description.
unit_descriptionTextDescription of the meter unit. Applies for meter type subtask.
units_codeTextMeter unit code. Applies when it is a meter type subtask.
order_numberNumberPosition in which the subtask is displayed.
is_requiredBooleanSubtask is mandatory.
wo_folioTextWO Id.
creation_dateTextDate of creation of the WO.
initial_dateTextTask start date.
final_dateTextEnd date of task.
id_status_work_orderNumberWork order status.
id_task_form_item_typeNumberType of subtask.

Example:

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

{
     "id_work_orders_tasks_form_items": 2567,
     "value":1
}
{
    "success": true,
    "message": "200",
    "data": {
        "id_work_order": 1,
        "id_work_order_task": 1,
        "id_work_orders_tasks_form_items": 1,
        "value": "true",
        "description": "Hay que fumigar plantas?",
        "unit_description": null,
        "units_code": null,
        "order_number": 1,
        "is_required": true,
        "meter_description": null,
        "last_value": null,
        "wo_folio": "37",
        "creation_date": "2016-02-02T00:00:00+00:00",
        "id_status_work_order": 3,
        "id_task_form_item_type": 2
    },
    "total": 1
}

Test It

Language