From 10efec8a3fb4f7a12daf00e700ca370122b1a1a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire?= Date: Fri, 23 Feb 2024 21:15:47 -0500 Subject: [PATCH] doc: fix POST status code --- docs/usage/writing/creating.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage/writing/creating.md b/docs/usage/writing/creating.md index ba0a21d52b..7e8a3243af 100644 --- a/docs/usage/writing/creating.md +++ b/docs/usage/writing/creating.md @@ -17,7 +17,7 @@ POST /articles HTTP/1.1 ``` When using client-generated IDs and only attributes from the request have changed, the server returns `204 No Content`. -Otherwise, the server returns `200 OK`, along with the updated resource and its newly assigned ID. +Otherwise, the server returns `201 Created`, along with the updated resource and its newly assigned ID. In both cases, a `Location` header is returned that contains the URL to the new resource.