Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jagadeesh_Prakash
Jagadeesh_PrakashAccepted solution
Community Advisor
March 31, 2023

@flyrplnz 

 

You can try below code 

curl --location --request POST 'http://localhost:4502/bin/replicate.json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'path=/content/mysite/mypage' \
--data-urlencode 'action=Activate' \
--data-urlencode 'deep=false' \
--header 'Authorization: Basic YOUR_AUTHORIZATION_HEADER'

 

Replace http://localhost:4502 with your AEM instance's URL, /content/mysite/mypage with the path of the page or asset you want to publish, and YOUR_AUTHORIZATION_HEADER with a Base64-encoded string of the format username:password.

1 reply

Jagadeesh_Prakash
Community Advisor
Jagadeesh_PrakashCommunity AdvisorAccepted solution
Community Advisor
March 31, 2023

@flyrplnz 

 

You can try below code 

curl --location --request POST 'http://localhost:4502/bin/replicate.json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'path=/content/mysite/mypage' \
--data-urlencode 'action=Activate' \
--data-urlencode 'deep=false' \
--header 'Authorization: Basic YOUR_AUTHORIZATION_HEADER'

 

Replace http://localhost:4502 with your AEM instance's URL, /content/mysite/mypage with the path of the page or asset you want to publish, and YOUR_AUTHORIZATION_HEADER with a Base64-encoded string of the format username:password.

Translate