Created
September 8, 2016 11:21
-
-
Save adi-li/9b0f9014849191e91bbbe5f0b9160920 to your computer and use it in GitHub Desktop.
Parse | Example data for adding a user to a role by REST API
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
# PUT it to `classes/_Role/roleID` | |
{ | |
"users": { | |
"__op": "AddRelation", | |
"objects": [ | |
{ | |
"__type": "Pointer", | |
"className": "_User", | |
"objectId": "objectId" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment