Skip to content

Commit 330459c

Browse files
authored
doc: fix POST status code (#1478)
1 parent 4362c54 commit 330459c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/usage/writing/creating.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ POST /articles HTTP/1.1
1717
```
1818

1919
When using client-generated IDs and only attributes from the request have changed, the server returns `204 No Content`.
20-
Otherwise, the server returns `200 OK`, along with the updated resource and its newly assigned ID.
20+
Otherwise, the server returns `201 Created`, along with the updated resource and its newly assigned ID.
2121

2222
In both cases, a `Location` header is returned that contains the URL to the new resource.
2323

0 commit comments

Comments
 (0)