Skip to content

Commit fe2909b

Browse files
authored
update can only target a single resource (json-api#1648)
1 parent e7d9320 commit fe2909b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_format/1.1/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,14 +1752,14 @@ does not want to allow deletion of records the client has not seen.
17521752

17531753
##### <a href="#crud-updating-responses-200" id="crud-updating-responses-200" class="headerlink"></a> 200 OK
17541754

1755-
If a server accepts an update but also changes the targeted resource(s) in ways
1755+
If a server accepts an update but also changes the targeted resource in ways
17561756
other than those specified by the request (for example, updating the
17571757
`updatedAt` attribute or a computed `sha`), it **MUST** return a `200 OK`
1758-
response and a document that contains the updated resource(s) as primary data.
1758+
response and a document that contains the updated resource as primary data.
17591759

17601760
A server **MAY** return a `200 OK` response with a document that contains no
17611761
primary data if an update is successful and the server does not change the
1762-
targeted resource(s) in ways other than those specified by the request. Other
1762+
targeted resource in ways other than those specified by the request. Other
17631763
top-level members, such as [meta], could be included in the response document.
17641764

17651765
##### <a href="#crud-updating-responses-202" id="crud-updating-responses-202" class="headerlink"></a> 202 Accepted
@@ -1771,7 +1771,7 @@ return a `202 Accepted` status code.
17711771
##### <a href="#crud-updating-responses-204" id="crud-updating-responses-204" class="headerlink"></a> 204 No Content
17721772

17731773
If an update is successful and the server doesn't change the targeted
1774-
resource(s) in ways other than those specified by the request, the server
1774+
resource in ways other than those specified by the request, the server
17751775
**MUST** return either a `200 OK` status code and response document (as
17761776
described above) or a `204 No Content` status code with no response document.
17771777

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy