In the version 3.0 of the API we could remove and add relationships in the same API call.
Below are the parameters we used to remove and add objects in the same call. The items we wanted to delete were obviously in the meta and the items we wanted to add were in the followedRetailersArray.
Is there a way to do this in the 4.0 API? It looks like you have a method which allows us to overwrite the data called set relation and a separate method to add called add relation and another one for deleting called Delete. Do you have a call that combines the add and delete but does not overwrite the existing relationships? We would rather make one call opposed to 2 and we would rather not overwrite the data if we don’t have to.
let followedRetailersArray = OURVALUES1 //[[String:String]]
let removedRetailers = OURVALUES2 //String
parameters = [
"followedRetailers": followedRetailersArray,
"__meta": "{\"relationRemovalIds\":{},\"selectedProperties\":[],\"relatedObjects\":{\"followedRetailers\":\(removedRetailers)}}"
]