How to update an existing node using CURL?

Avatar

Avatar

surenk

Avatar

surenk

surenk

10-09-2020

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/

 

 

aem6.5 curl

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

surenk

Avatar

surenk

surenk

10-09-2020

Found the correct command. For reference:

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

 

Answers (0)