Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Getting all the assets in a folder using Assets API without specifying limit

Avatar

Level 2

Hi Team,

 

I was going through https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/assets-api-content-fr... and found that there is a Paging available.

By default when i hit the asset API at folder level, i get default limit with 20.

Do we have an option to remove this limit and retrieve all the assets?

 

  • properties:{
    • srn:paging:
       
      {
      • total: 38,
      • offset: 0,
      • limit: 20
      }

Paging

The Assets REST API supports paging (for GET requests) via the URL parameters:

  • offset - the number of the first (child) entity to retrieve
  • limit - the maximum number of entities returned

The response will contain paging information as part of the properties section of the SIREN output. This srn:paging property contains the total number of (child) entities ( total), the offset and the limit ( offset, limit) as specified in the request.

 

Thanks

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I would also not recommed to change this. This can have huge performence impact on the system 

View solution in original post

5 Replies

Avatar

Community Advisor

Hi @arungm20, I do not think it is possible to remove the limit. In general you can try to increase limit value, and for some cases it will give you all the assets at once. Nevertheless I think that paging make sens e.g. in terms of performance.

Avatar

Level 2

I was able to find i could increase the limit under this. 

But thinking as it affects all the Get requests .

 

Any views?

 

arungm20_0-1646219660591.png

 

Avatar

Correct answer by
Community Advisor

I would also not recommed to change this. This can have huge performence impact on the system