Curl Command to set property on the Page

Avatar

Avatar
Establish
Level 4
kchaurasiya
Level 4

Likes

61 likes

Total Posts

57 posts

Correct reply

8 solutions
Top badges earned
Establish
View profile

Avatar
Establish
Level 4
kchaurasiya
Level 4

Likes

61 likes

Total Posts

57 posts

Correct reply

8 solutions
Top badges earned
Establish
View profile
kchaurasiya
Level 4

28-06-2021

Set the property from the curl command in AEM. You can set the property at a Single page or Multiple pages in less time.Basically curl command is used to update property on multiple pages, publish/unpublished the multiple pages in one go on Dev, UAT, Production and other environment.

 

I am trying to set the navRoot property as false for single and multiple pages.

1. Set navRoot property for the single page. You can just run below command in command prompt and can check the jcr:content of the below page path , Property will be updated as navRoot=false

      curl -u admin:admin -FnavRoot="false" http://localhost:4502/content/we-retail/us/en/jcr:content

2. Set navRoot property for the multiple pages/More than one page. You can use the && separator for the multiple pages.

     curl -u admin:admin -FnavRoot="true" http://localhost:4502/content/we-retail/us/en/jcr:content && curl -u admin:admin -FnavRoot="true" http://localhost:4502/content/we-retail/us/en/experience/jcr:content/jcr:content

 

Thank You.

Good day..!!

Replies

Avatar

Avatar
Springboard
Level 7
Prince_Shivhare
Level 7

Likes

122 likes

Total Posts

403 posts

Correct reply

65 solutions
Top badges earned
Springboard
Establish
Give Back 100
Boost 100
Validate 1
View profile

Avatar
Springboard
Level 7
Prince_Shivhare
Level 7

Likes

122 likes

Total Posts

403 posts

Correct reply

65 solutions
Top badges earned
Springboard
Establish
Give Back 100
Boost 100
Validate 1
View profile
Prince_Shivhare
Level 7

28-06-2021

Thanks for Sharing

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,198 likes

Total Posts

6,375 posts

Correct reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,198 likes

Total Posts

6,375 posts

Correct reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

01-07-2021

Great read. Keep the great work going.

-Kautuk

Avatar

Avatar
Establish
Level 4
kchaurasiya
Level 4

Likes

61 likes

Total Posts

57 posts

Correct reply

8 solutions
Top badges earned
Establish
View profile

Avatar
Establish
Level 4
kchaurasiya
Level 4

Likes

61 likes

Total Posts

57 posts

Correct reply

8 solutions
Top badges earned
Establish
View profile
kchaurasiya
Level 4

06-07-2021

@kautuk_sahni Thank You. Good day..!!