The types of subtasks that can be updated are:
Text
Number
Yes/No
Verification
EndPoint
https://app.fracttal.com/api/work_orders_subtasks/
PUT Method
Body:
Parameter | Field type | Required | Description |
id_work_orders_tasks_form_items | Text | Yes | ID of the subtask within the TO |
value | Text | Yes | Value of the subtask. According to the type of subtask, the following are the values to be entered:Id typeTypeType Possible values1TextFree text2Yes/Notrue, false, N/A3NumberNumber type values4Verification1 (Passed), 2 (Warning), 3 (Failed) |
Output parameters
Parameter | Field type | Description |
id_work_orders_tasks_form_items | Number | Subtask ID of the subtask within the TO |
value | Text | Subtask value |
description | Text | Subtask description |
unit_description | Text | Description of the meter unit. Applies when it is a meter type subtask. |
units_code | Text | Meter unit code. Applies when it is a meter type subtask. |
order_number | Number | Position where the subtask is displayed. |
is_required | Boolean | Subtask is mandatory |
wo_folio | Text | TO ID |
creation_date | Text | Date of creation of the TO |
initial_date | Text | Task start date |
final_date | Text | End date of the task |
id_status_work_order | Number | Status of the work order |
id_task_form_item_type | Number | Subtask type |
Example:
Request: https://app.fracttal.com/api/work_orders_subtasks/
Body:
{
"id_work_orders_tasks_form_items": 2567,
"value":1
}
Example Response
{
"success": true,
"message": "200",
"data": {
"id_work_order": 1,
"id_work_order_task": 1,
"id_work_orders_tasks_form_items": 1,
"value": "true",
"description": " Plants must be fumigated?",
"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
}