From 73999bef48184c532d99608788355dbcf4eef601 Mon Sep 17 00:00:00 2001 From: hhware Date: Sat, 28 Mar 2015 15:47:45 -0500 Subject: [PATCH] Clarify-relationship-formatting-jsonpatch --- extensions/jsonpatch/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/jsonpatch/index.md b/extensions/jsonpatch/index.md index c05216775..071611452 100644 --- a/extensions/jsonpatch/index.md +++ b/extensions/jsonpatch/index.md @@ -96,8 +96,8 @@ target a particular relationship's URL. #### Updating To-One Relationships To update a to-one relationship, perform a `"replace"` operation with a URL and -`"path"` that targets the relationship. The `"value"` should be a link object -that contains `"type"` and `"id"` members. +`"path"` that targets the relationship. The `"value"` **MUST** be a linkage object +or `null`, to remove the relationship. For instance, the following request should update the `author` of an article: @@ -130,8 +130,8 @@ A server **MUST** respond to Patch operations that target a *to-many relationship URL* as described below. For all operations, the `"value"` **MUST** contain an object that contains -`type` and `id` members, or an array of objects that each contain `type` -and `id` members. +an array of linkage objects or an empty array, to remove all elements +of the relationship. If a client requests a `"replace"` operation to a *to-many relationship URL*, the server **MUST** either completely replace every member of the relationship, 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