Retrieve the list of a field attachments
-
HTTP URL :
https://<your-instance>.yooi.io/api/store/object/id/{objectId}/attachments/{attachmentFieldId} -
HTTP method:
GET -
Parameters:
-
objectId: instance id -
attachmentFieldId: field id
-
Example
Bash
curl -X 'GET' \
'https://<your-instance>.yooi.io/api/store/object/id/cc416276-73c4-4cb8-a090-d101422f36aa/attachments/51842f47-311c-47aa-90ea-947eb4722417' \
-H 'Authorization: Bearer #yourtoken#'
Response
uploadedBy can be a user ID or an integration ID. To learn more about uploadedBy, you can retrieve information about that ID by retrieving the corresponding object.
JSON
{
"id": "cc416276-73c4-4cb8-a090-d101422f36aa",
"key": "cc416276-73c4-4cb8-a090-d101422f36aa",
"attachments": [
{
"name": "business_plan.xslx",
"revision": "643cc691-bb77-439d-a7ca-cc66ef4fde57",
"uploadedAt": 1739443047389,
"uploadedBy": "9d17a824-694f-4782-8d81-5abffd5e8832",
"rank": " !"
},
{
"name": "phases.docx",
"revision": "713f60bf-57b1-4e90-bfb5-0e503a534c90",
"uploadedAt": 1739443051849,
"uploadedBy": "9d17a824-694f-4782-8d81-5abffd5e8832",
"rank": " !"
},
{
"name": "logo.jpg",
"revision": "73a48862-b92a-4971-848c-50e7795875d9",
"uploadedAt": 1739445033629,
"uploadedBy": "78d450e4-9861-4b20-8c81-0904ae272208",
"rank": " !"
}
]
}