Thanks Steven for confirming that. I thought maybe I was going crazy! --Steve
On Wednesday, September 2, 2015 at 2:24:50 PM UTC-7, Steven MacLeod wrote: > > It looks like it's not actually possible to delete a user from a review > group using the Python API at the moment. Review Board seems to be > returning an incorrect url which points to the user resource itself, rather > than the review-group-user resource for the delete link. you can see that > by looking at the example here: > https://www.reviewboard.org/docs/manual/dev/webapi/2.0/resources/review-group-user/#example_application/vnd.reviewboard.org.user+json > > "delete": { >> "href": "http://reviews.example.com/api/users/doc/", >> "method": "DELETE" >> }, > > > This is a bug in Review Board and will need to be fixed there to allow > this. > > > On Wed, Sep 2, 2015 at 12:29 PM, Steve <[email protected] <javascript:>> > wrote: > >> I'm trying to remove users from review groups using the Python API. The >> docs indicate that the review group user resource has a delete method, but >> I can't figure out how to get it to work. I can add a user to a group >> easily this way: >> >> g.get_users().create(username='steve') >> >> Unfortunately, this doesn't work: >> >> g.get_users().delete(username='steve') >> >> Nor does this: >> >> g.get_user()[0].delete() >> >> or any other incarnation I've tried. Can somebody point me in the right >> direction? >> >> Thanks! >> >> --Steve >> >> -- >> Supercharge your Review Board with Power Pack: >> https://www.reviewboard.org/powerpack/ >> Want us to host Review Board for you? Check out RBCommons: >> https://rbcommons.com/ >> Happy user? Let us know! https://www.reviewboard.org/users/ >> --- >> You received this message because you are subscribed to the Google Groups >> "reviewboard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
