Updating a "patch" state via REST

Markus Mayer mmayer at broadcom.com
Thu Oct 11 05:02:26 AEDT 2018


On Wed, 10 Oct 2018 at 00:33, Stewart Smith <stewart at linux.ibm.com> wrote:
>
> Markus Mayer <mmayer at broadcom.com> writes:
> > I am working on a script that will, amongst other things, update the
> > state ("Accepted", "Rejected", etc.) of patches in our own Patchwork
> > installation. The script is using the REST API. All requests in the
> > script, so far, are GET requests. They work fine.
> >
> > Now, I want to issue a PUT request to update the patch state, also
> > using the REST API. However, no matter what I try, the request gets
> > rejected by the server.
>
> I think you want the PATCH request rather than PUT?
>
> https://github.com/stewart-ibm/pwnm-sync is my script I use to update
> patch status (from notmuch mail tags) and that seems to be the request
> type that works for me (with patchwork.ozlabs.org)

Indeed. That works. Thanks a lot!

Regards,
-Markus


More information about the Patchwork mailing list