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

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

  • January 16, 2025
  • 2 replies
  • 1355 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.

2 replies

gkalyan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
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
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
January 16, 2025

Adding the screenshot for quick reference