This method merges the data on the server with the key-value pairs sent from the client. You will send only key-value pairs you want to update from the client to the server. Note that you cannot delete the keys on the server with this method.
The data will be overwritten unconditionally regardless of if the data on the server is updated by other clients.
Here is the sample code:
This is what is happening in the sample code:
Prepare a KiiObject to update. In this sample code, we are creating a KiiObject with its URI (Replace the URI in the code with the real one when you are running the code).
Set the key-value pairs to update.
Execute the save(_:) method to update the KiiObject. We are not using the overwrite check, so the update will be made unconditionally.
You do not need to execute the refresh(_:) method when updating a KiiObject partially. If you execute the refresh(_:) method, all key-value pairs on the server will be downloaded to the client. So, the update will be virtually the full update.
When you partially update a KiiObject, you cannot remove key-value pairs with the remove(_:forKey:) method. This is because the local key-value pairs are merged with those on the server. Fully update the KiiObject to remove key-value pairs.