I need to update a couchdb document, when I and run the following
command in ruby irb
CouchRest.put('http://localhost:5984/db', {"_id": "1","_rev":
"sdf", "test": "testing"})
I get an error -
RestClient::Request::Unauthorized: 401 Unauthorized:
{"error":"unauthorized","reason":"You are not a server admin."}
While in the same console I am able to successfully run -
CouchRest.post('http://localhost:5984/db', {"test": "testing"})
Could somebody help with this please.
Cheers!