What relation did you expect to be removed?
45B1EE14-FBA2-B3AF-FFCC-294DE1653D00
if I get you right https://backendless.com/documentation/data/rest/data_relations_delete.htm
Hi Eugen,
The format for relation removal has changed from the way the doc describes it and what’s worse is there is a regression in the current version. I opened an internal ticket and as soon as the problem is fixed, I will post information here on the updated format.
I apologize about the inconvenient this causes for you.
Regards,
Mark
Hi, Mark.
What is news?
Hi, Eugene! Here’s how you can remove relation:
For example, you have 2 tables Address (street, city) and Person (name, 1:1 relation to-> Address)
To remove the relation from between person and address, you can execute this request:
curl
-H application-id:application-id-value-from-console
-H secret-key:secret-key-value-from-console
-H Content-Type:application/json
-X PUT
-d {
"address": null,
"created": 1452264617000,
"name": "Andrew",
"___class": "Person",
"ownerId": null,
"updated": 1452273668000,
"objectId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"__meta": "{\"relationRemovalIds\":{},\"selectedProperties\":[\"__updated__meta\",\"address\",\"created\",\"name\",\"___class\",\"ownerId\",\"updated\",\"objectId\"],\"relatedObjects\":{\"address\":[\"44F70FDE-032E-DA70-FF4C-741E568F2E00\"]}}"
}"
-v [url=https://api.backendless.com/v1/data/Person/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX]https://api.backendless.com/v1/data/Person/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX[/url]
where “XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX” is objectId of the person which relation to Address table is to be deleted,
“address”: null is a new (deleted) relation.
More about relations deleting and updating https://backendless.com/documentation/data/rest/data_relations_save_update.htm