Hi team,
Could someone explain to me how to Retrieve the images through API from the Document Module?
this is my GET method API:
{{suitecrm.url}}/V8/module/coll_Agents/bf741308-xxxxxx-657d7d04f53e/relationships/documents_coll_agents_1
and here is the response
{
"meta": {
"total-records": 1,
"total-pages": 1,
"records-on-this-page": 1
},
"data": [
{
"type": "Document",
"id": "8ba053cf-xxxxxx-65d05c938a6e",
"attributes": {
"name": "the-batman-2022-teaser-poster-batman-01-promo.webp",
"date_entered": "2024-02-17T07:12:00+00:00",
"date_modified": "2024-02-17T09:39:00+00:00",
"modified_user_id": "1",
"modified_by_name": "Administrator",
"created_by": "1",
"created_by_name": "Administrator",
"description": "",
"deleted": "0",
"created_by_link": "",
"modified_user_link": "",
"assigned_user_id": "1",
"assigned_user_name": "Administrator",
"assigned_user_link": "",
"SecurityGroups": "",
"document_name": "the-batman-2022-teaser-poster-batman-01-promo.webp",
"doc_id": "",
"doc_type": "Sugar",
"doc_url": "",
"filename": "the-batman-2022-teaser-poster-batman-01-promo.webp",
"active_date": "2024-02-17",
"exp_date": "",
"category_id": "",
"subcategory_id": "",
"status_id": "Active",
"status": "Active",
"document_revision_id": "8d963921-xxxxxx-65d05c72b1c0",
"revisions": "",
"revision": "1",
"last_rev_created_name": "Administrator",
"last_rev_mime_type": "image/webp",
"latest_revision": "",
"last_rev_create_date": "17/02/2024 12:42 PM",
"contracts": "",
"leads": "",
"accounts": "",
"contacts": "",
"opportunities": "",
"cases": "",
"bugs": "",
"related_doc_id": "",
"related_doc_name": "",
"related_doc_rev_id": "",
"related_doc_rev_number": "",
"is_template": "0",
"template_type": "",
"latest_revision_name": "",
"selected_revision_name": "",
"contract_status": "",
"contract_name": "",
"linked_id": "",
"selected_revision_id": "",
"latest_revision_id": "",
"selected_revision_filename": "",
"filecontents": "",
"aos_contracts": "",
"show_preview": false,
"documents_coll_agents_1": ""
},
"links": {
"self": "V8/module/Document/8ba053cf-xxxxxx-65d05c938a6e"
}
}
]
}
I’ve got the Response, but with the response how do I Display the image in Postman though I don’t have doc_url in the response, how could I display the image