Updating
URL
PUT to the following URL:
http://rest.wasabisync.com/client_apps/<appId>/users/<userId>/known_objects/<\guid>.json
Parameters
- appId - The application id which will receive your data. This should be of the form: com.yourcompany.yourapplication.
- userId - The id of the user who will own the object you are posting. Typically, this will be an email address.
- guid - The id of the object you want to update.
Payload
The payload of this call should contain a JSON dictionary containing the following keys:
- object - The object to be created. This should match the Wasabi JSON Object Definition.
- objtype - The name of the type of object to be created. This should match an entity type in your applications managed object model.
- schema_version - The version of the schema from your managed object model to use in creating and storing this object.
Result
Discussion
This method allows you to update a specific object. The entire value of the object will be replaced with the payload you specify.