API to bulk update assets metadata | Community
Skip to main content
Tethich
Community Advisor
Community Advisor
November 13, 2024
Solved

API to bulk update assets metadata

  • November 13, 2024
  • 2 replies
  • 683 views

Hi.

 

Is there an API or other way to update metadata of multiple assets in bulk from third-party platform, in an AEM on-prem setup

 

I already reviewed this article https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-assets/how-to-bulk-update-metadata-in-aem-assets/td-p/573132. But it only talks about ways to do it from within AEM, like using ACS commons stuff for example. While.I need to trigger the bulk update from another platform that integrates with AEM.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by EstebanBustamante

Hi,

 

Not that I am aware of. Outside of AEM, you only have the Assets API which will trigger a single operation at a time (https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/admin/mac-api-assets#update-asset-metadata). If you don't want to trigger the bulk update from within AEM, you could still add a servlet as a wrapper, and expose a URL which internally triggers one of the methods you mentioned to perform the bulk update (ACS Commons, etc.).

 

Hope this helps.

 

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
November 13, 2024

Hi,

 

Not that I am aware of. Outside of AEM, you only have the Assets API which will trigger a single operation at a time (https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/admin/mac-api-assets#update-asset-metadata). If you don't want to trigger the bulk update from within AEM, you could still add a servlet as a wrapper, and expose a URL which internally triggers one of the methods you mentioned to perform the bulk update (ACS Commons, etc.).

 

Hope this helps.

 

Esteban Bustamante
Tethich
Community Advisor
TethichCommunity AdvisorAuthor
Community Advisor
November 13, 2024

Thank for confirmimg my thoughts. I wanted to see if I can avoid having to write any custom endpoint to handle buld requests from outside.

arunpatidar
Community Advisor
Community Advisor
November 14, 2024

Hi @tethich 
In the past, we used a Groovy script to update asset metadata based on business logic, with data inputs provided as JSON directly through the Groovy Console.

 

In our use case we have not fetched any data from third-party APIs but the data source was json

Arun Patidar