AEM Cloud Activate or Publish later | Community
Skip to main content
January 21, 2025

AEM Cloud Activate or Publish later

  • January 21, 2025
  • 2 replies
  • 809 views

Hi,

 

We are using AEM cloud and currently I am trying for a way to schedule publishing using postman. I am able to achieve publishing or activate now using local development token but not sure how to schedule for later using postman. Is it even possible?

 

Post URL :  {aemenvironmenturl}/bin/replicate.json

 

Below are the parameters passed.

 

path: /content/dam/exmpleclient/sample

cmd: activate

agentId: publish

 

Tried schedule parameter but it did not work.

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

2 replies

aanchal-sikka
Community Advisor
Community Advisor
January 21, 2025

@lk1015 

 

The curl command for /bin/replicate.json might not be able to support Scheduled Publication.

 

AEM supports Publish/Unpublish Later via Workflow "Scheduled Page/Asset Activation" / "Scheduled Asset Unpublish from Brand Portal"

 

Instead, you might want to use Workflow Rest API to Trigger the Scheduled Replication https://experienceleague.adobe.com/en/docs/experience-manager-65/content/implementing/developing/extending-aem/extending-workflows/workflows-program-interaction#using-the-workflow-rest-api 

Aanchal Sikka
LK1015Author
January 21, 2025

Hi, Thank you for your response.

 

We have another postman script as below so can we use that for scheduling publishing? If yes could you please help me with type parameter value and parameter name for date and time for scheduling.

 

Post URL: <aemenvironmenturl>/adobe/sites/cf/workflows

 

Body of the request:

{
    "type": "publish-folder",
    "agentId": "publish",
    "folderPath": "content/dam/exmpleclient/test",
    "excludeSubFolders": false   
}
kautuk_sahni
Community Manager
Community Manager
February 10, 2025

@lk1015 Did you find the suggestion helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Kautuk Sahni