Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

List of all attachments in Insight REST API

Chad Peters
Contributor
March 8, 2019

I see there's a way to pull back attachments one object at a time:

https://documentation.riada.io/insight/latest/objects-attachments-rest-29316615.html

And unfortunately the normal object call doesn't return a list of attachments for each object.

e.g. 
.../rest/insight/1.0/iql/objects?objectSchemaId=3&iql=ObjectType=%22Products%22&resultPerPage=10 

So, unless you know the exact object ID there's no way to get to the attachments. Is there another way I'm missing? I'd love to see them listed at the object level or a call that lists all attachments for a given schema. 

1 answer

0 votes
Yinon Negev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2019

Hi Chad.

      In the OBJECT API Documentation you will find two APIs to Find Objects (either by 

/rest/insight/1.0/objecttype/{id}/objects, or similar to the IQL in your example).

However, as you've noted - while these will return a list of Objects (with or without Attributes), for which you will have to call on each separately to get the Specific Object's Attachment. currently, there is no REST endpoint to get an Object expanded with its Attachments.

I would like to recommend you to visit https://jira.riada.io which is our open ticket system for feature requests and verified bugs. You can view, watch, vote and comment on issues reported by anyone.

If you can't find an already opened ticket request for this feature, feel free to create a new one.

Please inform us if you have further inquiries.

Kind regards,

Yinon

Team Riada

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events