-XPUT not -PUT

On 17 October 2011 19:33, bsquared <[email protected]> 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:[email protected]: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:[email protected]: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
>
>

Reply via email to