Skip to main content
Jan 21, 2025 9:40 AM UTC

AEM Cloud Activate or Publish later

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.

3 replies

aanchal-sikka
Community Advisor
Community Advisor
Jan 21, 2025 11:08 AM UTC

@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 

Translate
Aanchal Sikka
LK1015Author
Jan 21, 2025 3:13 PM UTC

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   
}
Translate
kautuk_sahni
Level 9
Feb 10, 2025 10:44 AM UTC

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

Translate
Kautuk Sahni