File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,7 @@ target a particular relationship's URL.
96
96
#### Updating To-One Relationships <a href =" #patch-updating-to-one-relationships " id =" patch-updating-to-one-relationships " class =" headerlink " ></a >
97
97
98
98
To update a to-one relationship, perform a ` "replace" ` operation with a URL and
99
- ` "path" ` that targets the relationship. The ` "value" ` should be a link object
100
- that contains ` "type" ` and ` "id" ` members.
99
+ ` "path" ` that targets the relationship. The ` "value" ` ** MUST** be a linkage object.
101
100
102
101
For instance, the following request should update the ` author ` of an article:
103
102
@@ -130,8 +129,8 @@ A server **MUST** respond to Patch operations that target a *to-many
130
129
relationship URL* as described below.
131
130
132
131
For all operations, the ` "value" ` ** MUST** contain an object that contains
133
- ` type ` and ` id ` members, or an array of objects that each contain ` type `
134
- and ` id ` members .
132
+ an empty array or an array of linkage objects.
133
+ An empty array will remove all elements of the relationship .
135
134
136
135
If a client requests a ` "replace" ` operation to a * to-many relationship URL* , the
137
136
server ** MUST** either completely replace every member of the relationship,
You can’t perform that action at this time.
0 commit comments