Skip to content

Instantly share code, notes, and snippets.

@adi-li
Created September 8, 2016 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adi-li/9b0f9014849191e91bbbe5f0b9160920 to your computer and use it in GitHub Desktop.
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
# 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