Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

How to update an existing node using CURL?

Avatar

Level 4

How can we edit an existing value in a node using CURL?

 

Trying to update the key value of "server-name" via CURL

 

Screen Shot 2020-09-10 at 12.30.27 PM.png

 

The below command is creating a new nodes instead of updating existing.

 

curl -u admin:admin -F _charset_=utf-8 -F key=server-name -F value=server-name-value http://localhost:4502//etc/sample-node/config/endpoint/

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

6.5
1 Accepted Solution

Avatar

Correct answer by
Level 4

Found the correct command. For reference:

curl -u admin:admin -Fserver-name=https://new-server.com http://localhost:4502/etc/sample-node/config/endpoint

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

Found the correct command. For reference:

curl -u admin:admin -Fserver-name=https://new-server.com http://localhost:4502/etc/sample-node/config/endpoint