Skip to content

Commit e7d3a7a

Browse files
authored
clarify 409 even if only type or it does not match endpoint
The server should respond with `409 Conflict` also of only `type` or `id` does not match the used. Using _and_ wasn't precise therefore. General speaking the server should respond with `409 Conflict` if resource object included in a `PATCH` request is _not_ the resource represented by the used endpoint. This issue was reported by @Relequestual in json-api#1549. He also proposed the fix implemented here. Closes json-api#1549
1 parent 5f68ce0 commit e7d3a7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_format/1.1/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@ update a resource if that update would violate other server-enforced
17871787
constraints (such as a uniqueness constraint on a property other than `id`).
17881788

17891789
A server **MUST** return `409 Conflict` when processing a `PATCH` request in
1790-
which the resource object's `type` and `id` do not match the server's endpoint.
1790+
which the resource object's `type` or `id` do not match the server's endpoint.
17911791

17921792
A server **SHOULD** include error details and provide enough information to
17931793
recognize the source of the conflict.

0 commit comments

Comments
 (0)