From 105f79041a08f1c557b364b07518b4b2a683909a Mon Sep 17 00:00:00 2001 From: Andrew Donnellan Date: Thu, 25 May 2017 18:05:10 +1000 Subject: docs/api: change POST to PATCH in REST API parameters example api/rest.rst gives an example of how to POST parameters to the PatchDetail view at api/patches/. However, the endpoint in question doesn't support POST - you need to use PUT or PATCH. Change it to PATCH. Signed-off-by: Andrew Donnellan Reviewed-by: Stephen Finucane --- docs/api/rest.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/api/rest.rst b/docs/api/rest.rst index 1750913..8c8fd95 100644 --- a/docs/api/rest.rst +++ b/docs/api/rest.rst @@ -155,7 +155,7 @@ parameters should be passed as form-encoded data: .. code-block:: shell - $ curl -X POST -F 'state=under-review' \ + $ curl -X PATCH -F 'state=under-review' \ 'https://patchwork.example.com/api/patches/123' Authentication -- cgit v1.2.3