Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
2.2.12
-
None
Description
When the following request body is PATCH'ed to the REST API, the servers relationships will be removed.
{
|
data: {
|
relationships: {
|
servers: null |
}
|
}
|
}
|
The correct thing to do would be to send an error about a malformed request. This applies to all resource endpoints that have relationships.
Relationships are deleted by changing the data member of the relationship to null (see JSON API). This would be the correct JSON:
{
|
data: {
|
relationships: {
|
servers: {
|
data : null |
}
|
}
|
}
|
}
|