Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Quick Publish via REST api

Avatar

Level 1

Is it possible to Quick Publish a document via the REST api?  If so could someone point me to the documentation?

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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