Skip to content

Commit fe95767

Browse files
authored
doc: clarify wording around 204 for POST (#1481)
* doc: clarify wording around 204 for POST * Update creating.md
1 parent 330459c commit fe95767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/usage/writing/creating.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ POST /articles HTTP/1.1
1616
}
1717
```
1818

19-
When using client-generated IDs and only attributes from the request have changed, the server returns `204 No Content`.
20-
Otherwise, the server returns `201 Created`, along with the updated resource and its newly assigned ID.
19+
When using client-generated IDs and all attributes of the created resource are the same as in the request, the server
20+
returns `204 No Content`. Otherwise, the server returns `201 Created`, along with the stored attributes 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)