With this API you can query the list of Note and Link attachments that were added to a TO.

You can filter by:

  • Task ID in the TO

  • Attachment type

EndPoint

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

Input Parameters

Parameter

Field type

Required

Description

id_work_order_task

Number

Optional

Id of the task within the TO.

type

Text

Optional

Attachment type Can be:ValueDescription2Note type3Link type

start

Integer

Optional

Initial record number to be displayed by the query. Used for record pagination. It is the number where the pagination starts. By default it is 0

limit

Integer

Optional

Final record number to be returned by the query.

Output parameters

Parameter

Field type

Required

Description

id_work_order_task

Number

Optional

Id of the task within the TO.

type

Text

Optional

Attachment type Can be:ValueDescription2Note type3Link type

ot_status

Integer

Optional

Number indicating the status of the ots (1: Ots in process, 2: Ots in Review, 3: Ots Closed, 4: Ots Cancelled).

start

Integer

Optional

Initial record number that will show the query. It is used to make the pagination of records. It is the number at which the pagination starts. Default is 0

limit

Integer

Optional

Final record number that the query will return.

Example:

Request: https://app.fracttal.com/api/work_orders_tasks_files/?id_work_order_task=9170

Example Response

{ 
"success": true,
"message": "200",
"data": [
{
"description": null,
"value": ""After order closed deliver to plant manager",
"type": 3,
"id_work_order_task": 9170,
"id_work_orders_tasks_form_items": null,
"id_company": 133
},
{
"description": null,
"value": "http://fracttal.com",
"type": 2,
"id_work_order_task": 9168,
"id_work_orders_tasks_form_items": 47095,
"id_company": 133
},
{
"description": null,
"value": "http://fracttal.com",
"type": 2,
"id_work_order_task": 9167,
"id_work_orders_tasks_form_items": 47088,
"id_company": 133
},
],
"total": 3
}

Did this answer your question?