To use this EndPoint is necessary to have the Advanced API ADD-ON.

EndPoint https://app.fracttal.com/api/work_orders_attachments/:folio

Parameters Input

Parameter

Field type

Required

Description

folio

Int

Obligatory

Service order ID

id_work_order_task

Int

Obligatory

Task ID within the work order

Type

Int

Optional

Attachment Type (1-File, 3-Note, 2-Link)

start

Int

Optional

Initial record number that the query will display.

limit

Int

Optional

Finish registration number that will return to the query.

Output parameters

Parameter

Field type

Description

id_work_order_task

Int

Task ID within the work order

id_company

Int

ID dthe company

wo_folio

Int

Service order ID

type

Int

Attachment Type (1 File, 3-Note, 2-Link)

description

Text

Description of the annex

value

Text

Attachment value

Example:

Requisition:

https://app.fracttal.com/api/work_orders_attachments/OTPRB8612019?id_work_order_task=7077133

{
"success": true,
"message": "200",
"data": [
{
"description": "",
"value": "https://fracttal-fs.s3.amazonaws.com/company_1190/.ot/7077133/FB_IMG_1618664297806.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJFGNA53BIGD7KR2A%2F20220809%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220809T205958Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=11b7f37e21f4393298d0d3347d814efb502ff7092849d21e7cff91672f7951aa",
"type": 1,
"id_work_order_task": 7077133,
"wo_folio": "OTPRB8612019",
"id_company": 1190
},
{
"description": "Novo",
"value": "https://fracttal-fs.s3.amazonaws.com/company_1190/.ot/7077133/FB_IMG_1626372957794.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJFGNA53BIGD7KR2A%2F20220809%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220809T205958Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=416eae817861b6ac2ce0ac35ff837cf4bdb341d9c5397ce2cb377fa1af60468d",
"type": 1,
"id_work_order_task": 7077133,
"wo_folio": "OTPRB8612019",
"id_company": 1190
},
{
"description": "Adj off 1",
"value": "https://fracttal-fs.s3.amazonaws.com/company_1190/.ot/3726532/1650458146548-photo.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJFGNA53BIGD7KR2A%2F20220809%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220809T205958Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=2513e64ec59ac086f03a8cc39653812da8d3331f7c7880ee69dc1fa693c68f4c",
"type": 1,
"id_work_order_task": 7077133,
"wo_folio": "OTPRB8612019",
"id_company": 1190
},
{
"description": "Adj off 2",
"value": "https://fracttal-fs.s3.amazonaws.com/company_1190/.ot/3726532/1650458158097-photo.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJFGNA53BIGD7KR2A%2F20220809%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220809T205958Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=6bfee2c6a65515e96808861c49f2a89bc1b619526117cece504be7a1523c18e5",
"type": 1,
"id_work_order_task": 7077133,
"wo_folio": "OTPRB8612019",
"id_company": 1190
},
{
"description": "Adj off 3",
"value": "https://fracttal-fs.s3.amazonaws.com/company_1190/.ot/3726532/Screenshot_20220303_001531_com.facebook.katana.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJFGNA53BIGD7KR2A%2F20220809%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220809T205958Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=1e121ddc77eebd6615ba3a2047e86364cd0c501f7b6f72af7a4f6851fe4df7e6",
"type": 1,
"id_work_order_task": 7077133,
"wo_folio": "OTPRB8612019",
"id_company": 1190
},
{
"description": "Link",
"value": "https://unlink.com",
"type": 2,
"id_work_order_task": 7077133,
"wo_folio": "OTPRB8612019",
"id_company": 1190
},
{
"description": "Nota",
"value": "Adj 4 ok",
"type": 3,
"id_work_order_task": 7077133,
"wo_folio": "OTPRB8612019",
"id_company": 1190
}
],
"total": 7
}
Did this answer your question?