Created
March 4, 2015 18:34
-
-
Save chengfred/55b50ffb628937c5f3cc to your computer and use it in GitHub Desktop.
Changing default schema for a field to use replace for diffs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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