How to update an existing node using CURL? | Community
Skip to main content
surenk
New Participant
September 10, 2020
Solved

How to update an existing node using CURL?

  • September 10, 2020
  • 1 reply
  • 912 views

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

 

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

 

 

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/

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by surenk

Found the correct command. For reference:

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

 

1 reply

surenk
surenkAuthorAccepted solution
New Participant
September 10, 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