Skip to content

Instantly share code, notes, and snippets.

@chengfred
Created March 4, 2015 18:34
Show Gist options
  • Save chengfred/55b50ffb628937c5f3cc to your computer and use it in GitHub Desktop.
Save chengfred/55b50ffb628937c5f3cc to your computer and use it in GitHub Desktop.
Changing default schema for a field to use replace for diffs
POST https://api.simperium.com/1/<app id>/__options__/i/<bucket name>
{ "schema" : { "attributes" : { "<fieldname>" :{ "otype" : "replace" } } } }
Example:
App ID: test-app-1337
Bucket Name: blarb
Field Name: b64thing
POST https://api.simperium.com/1/test-app-1337/__options__/i/blarb
{ "schema" : { "attributes" : { "b64thing" :{ "otype" : "replace" } } } }
Will change the default diff mode for the field "b64thing" for objects in the "blarb" bucket from string to replace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment