couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bsquared <bwcod...@gmail.com>
Subject how to modify database security object?
Date Mon, 17 Oct 2011 18:33:52 GMT
Hello,
I may have missed it, but I did not see anything on the wiki about
modifying the security document.

As a test I have this:
   curl -GET http://test:test@127.0.0.1:5984/evently_tutorial/test/_security
   returns (values entered in futon):
   '{"admins":{"names":["b1"],"roles":["admin"]},"members":{"names":["b2"],"roles":["user"]}}'

I try to modify:
   curl -PUT http://test:test@127.0.0.1:5984/evently_tutorial/test/_security -d
   '{"admins":{"names":["b1"],"roles":["admin"]},"members":{"names":[],"roles":[]}}'
   returns this error:
   {"error":"method_not_allowed","reason":"Only PUT,GET allowed"}

How can these objects be modified using the http API?
Thank you.

-- 
Regards,
Brian Winfrey


Mime
View raw message