Hi, I'm working on AIO function that handles asset processing. Business logic requires to upload new asset to AEM or update existing one and republish if it's already published. I have asset successfully uploaded but I can not find any API endpoint that would let me publish the asset. What would be the best way of doing this?
Solved! Go to Solution.
Views
Replies
Total Likes
The issue is that the replication action is not exclusive to assets, so there is no API included in the AEM Assets HTTP API. In fact, I don't believe there is any REST API available to achieve this. Here are the options listed in the official documentation: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/replicat...
Depending on your use case, you could either add a launcher to automatically publish the image upon upload event (possibly under a specific path), or you could build your own REST API to replicate using the Java Replicate API.
The issue is that the replication action is not exclusive to assets, so there is no API included in the AEM Assets HTTP API. In fact, I don't believe there is any REST API available to achieve this. Here are the options listed in the official documentation: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/replicat...
Depending on your use case, you could either add a launcher to automatically publish the image upon upload event (possibly under a specific path), or you could build your own REST API to replicate using the Java Replicate API.
@KamilKo Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes
Views
Likes
Replies