Publish asset via HTTP API | Community
Skip to main content
October 24, 2023
Solved

Publish asset via HTTP API

  • October 24, 2023
  • 2 replies
  • 1428 views

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?

I've checked the AEM Assets HTTP API and I couldn't find such an option. I've also gone over Assets developer use cases but replication doesn't appear to be covered by the documentation.
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

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/replication.html?lang=en 

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.

 

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
October 24, 2023

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/replication.html?lang=en 

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.

 

Esteban Bustamante
kautuk_sahni
Community Manager
Community Manager
October 26, 2023

@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.

Kautuk Sahni