Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to update an existing node using CURL?

surenk
Level 4
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
surenk
Correct answer by
Level 4
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
surenk
Correct answer by
Level 4
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