Java API to create Asset in AEMaaCs programmatically as AssetManager.create is deprecated now | Community
Skip to main content
New Member
January 16, 2025
Solved

Java API to create Asset in AEMaaCs programmatically as AssetManager.create is deprecated now

  • January 16, 2025
  • 3 replies
  • 1379 views

Hi All,

 

I am creating asset in AEM as cloud service using assetManager.createAsset() method but, I got to know this was deprecated.

 

Do we have any alternate Java API to use instead?

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

3 replies

gkalyan
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
January 16, 2025

@user64476 You can still use "createOrReplaceAsset" or "createOrUpdateAsset" from Asset Manager

 

https://developer.adobe.com/experience-manager/reference-materials/cloud-service/javadoc/com/day/cq/dam/api/AssetManager.html

gkalyan
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
January 16, 2025

Adding the screenshot for quick reference