couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: how to modify database security object?
Date Mon, 17 Oct 2011 19:29:26 GMT
-XPUT not -PUT

On 17 October 2011 19:33, bsquared <bwcode4u@gmail.com> wrote:
> 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