By means of this EndPoint it is possible to consult the attachments (images) linked to work requests.
To use this EndPoint it is necessary to have the Advanced API ADD-ON.
EndPoint
https://app.fracttal.com/api/work_requests_attachments/:code
Parameters Input
Parameter | Field type | Required | Description |
code | Text | Optional | The id of the request. |
Start | Whole | Optional | The initial record number that the query will display. |
limit | Whole | Optional | Final record number that will return the query. |
Output parameters
Parameter | Field type | Description |
Id | Whole | Attachment ID |
id_request | Whole | Request ID |
description | Text | Attachment name |
signed_path_image | Text | Url of the attachment download |
Example:
Example Request:https://app.fracttal.com/api/work_requests_attachments/11
Example Response:
{
"success": true,
"message": "200",
"data": [
{
"id": 3,
"id_company": 1190,
"id_request": 11,
"description": "galery_20191004081300.png",
"signed_path_image": "https://fracttal-fs.s3.amazonaws.com/company_1190/.request/11/galery_20191004081300.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJFGNA53BIGD7KR2A%2F20220618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220618T033733Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=79eb82ab95638a6e01ec10f79abf616e195452c3c4769c0aa579de4890231155"
},
{
"id": 4,
"id_company": 1190,
"id_request": 11,
"description": "galery_20191004081311.png",
"signed_path_image": "https://fracttal-fs.s3.amazonaws.com/company_1190/.request/11/galery_20191004081311.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJFGNA53BIGD7KR2A%2F20220618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220618T033733Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=a5d40fb9ce1735c1b12c6725ac419e3dcff65d688c3f4fdc6f0f80e6322b06fd"
},
{
"id": 5,
"id_company": 1190,
"id_request": 11,
"description": "IMG_20191004_081319.jpg",
"signed_path_image": "https://fracttal-fs.s3.amazonaws.com/company_1190/.request/11/IMG_20191004_081319.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJFGNA53BIGD7KR2A%2F20220618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220618T033733Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=f0d4032537737788d1b29e6c7f833efe6c40f7e8524e8e7305d00861be5e486a"
}
],
"total": 3
}