put
https://app.fracttal.com/api/work_order_cancel/
Through this API you can cancel a Work Order.
This web service is part of the ADVANCED APIS add-on.
:folio = Folio number or WO number to cancel
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
folio | Text | Yes | WO code |
user_code | Text | Yes | Code of the human resource that will update the WO in Fracttal |
work_orders_status_cancel | Text | Yes | Cancellation reason |
note | Text | Yes | Note indicating why the WO is being canceled |
id_work_order | Number | No | WO ID. This ID is optional, only required when the folio is not specified |
Output Parameters
| Parameter | Type | Description |
|---|---|---|
id | Number | Task ID in the work order |
id_group_task | Number | ID of the task plan where the task from which information will be obtained is located |
id_request | Number | Request ID, if the task comes from a request |
id_item_log | Number | ID of the item log associated with the task |
id_task_log | Number | Internal ID of the task log |
id_tasks_todo | Number | Internal ID of pending tasks |
id_task_trigger | Number | Internal ID of the task trigger |
id_task | Number | ID of the task from which information will be obtained to create the WO |
id_item | Number | Asset ID |
id_items_availability | Number | Out-of-service record ID |
items_log_description | Text | Asset description |
task_description | Text | Task description |
Example
Request: (PUT) https://app.fracttal.com/api/work_order_cancel?folio=OT-1896
{
"user_code": "AQOP1521",
"work_orders_status_cancel": "Error in WO generation",
"note": "Duplicate WO"
}{
"success": true,
"message": "200",
"data": {
"id": 16954494,
"id_group_task": null,
"id_request": null,
"id_item_log": 3696049,
"id_task_log": 5683844,
"id_tasks_todo": 16740135,
"id_task_trigger": null,
"id_task": 5911238,
"id_item": 1,
"id_items_availability": null,
"items_log_description": "{ CORP-256 } MANUFACTURING SECTOR COMPANY INTERNATIONAL AVENUE ",
"task_description": "Duplicate WO"
},
"total": 1
}