Expand my Community achievements bar.

SOLVED

Can you use Assets HTTP API to access assets in a collection in AEM DAM?

Avatar

Level 2

Does Assets HTTP API support accessing assets in a given collection in AEM DAM? Or is there an alternative programmatically approach or another API for it?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@uafzal  Yes you can retrieve the assets in a folder in AEM Assets using the Assets Http API. Refer link below

https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html#r...

You can try accessing /api/assets/myFolder.json endpoint in postman with Basic Auth.

View solution in original post

3 Replies

Avatar

Correct answer by
Employee Advisor

@uafzal  Yes you can retrieve the assets in a folder in AEM Assets using the Assets Http API. Refer link below

https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html#r...

You can try accessing /api/assets/myFolder.json endpoint in postman with Basic Auth.

Avatar

Level 1
@shelly-goel Thank you for the comment. Yes, retrieving folder listing is possible. My question was regarding accessing assets in a collection. Do you know if there a way to fetch assets in a collection?

Avatar

Employee Advisor
Since collection doesn't actually hold the assets but virtually groups them together, I don't think there's any API currently available to fetch assets in a collection