Using this web service you can insert notes and links in the attachment section of a TO task.

For this service, it is necessary to send the WO id and the asset code that has the task.

In case there is more than 1 task for the same asset, the web service will insert the note or link in the first task it finds.

EndPoint

https://app.fracttal.com/api/work_orders_tasks_files/

POST method

Input parameters in the body

Parameter

Field type

Required

Description

item_code

Text

Yes

Code of the asset that has the associated task

folio

Text

(Only required when sending the folio and not the id_work_order_task)

TO ID. With this value a TO task will be associated with the asset sent.

id_work_order_task

Integer

Yes

Task ID. This value will associate it to a specific task.

id_work_orders_tasks_form_items

Integer

(Only required when not sending the id_work_order_task)

Id the subtask. If this value is sent, the information will be associated to the attachment of a subtask. If this action is desired it is mandatory to send the id_work_order_task

value

Text Yes Note or link to insert

Text Yes Note or link to insert

Text Yes Note or link to insert

type

Integer Yes Attachment type, can be

Integer Yes Attachment type, can be

Integer Yes Attachment type, can be

Example:

Request: https://app.fracttal.com/api/work_orders_tasks_files/

Body

{ 
"folio":"OTS-181-2019",
"item_code":"AME-001-FTT",
"type":3,
"value":" Note created from the API "
}

Example Response

{ 
"success": true,
"message": "200",
"data": {
"id": 1059,
"id_company": 133,
"id_work_order_task": 6586,
"type": 3,
"description": null,
"value": " Note created from the API ",
"creation_date": "2019-09-04T13:52:39.57612+00:00"
},
"total": 0
}

Example attached in subtasks:

Request: https://app.fracttal.com/api/work_orders_tasks_files/

Body

{ 
"id_work_order_task":1727,
"id_work_orders_tasks_form_items":3211,
"type":2,
"value":"https://www.fracttal.com"
}

Example Response

{ 
"success": true,
"message": "200",
"data": {
"id": 799,
"id_company": 69,
"id_work_order_task": 1727,
"type": 2,
"description": null,
"value": "https://www.fracttal.com",
"creation_date": "2020-09-18T15:29:21.246815+00:00",
"size": null
},
"total": 0
}

Did this answer your question?