I been all over this page http://docs.appery.io/documentation/backendservices/server-code/ but still no luck. I even provide my master key and I still get "Access denied: you don’t have write permission on specified object".
I am using server code to update a particular field in a collection that has the ACL enabled.
Am I missing something?
code
updatedSettings = {
"X-Appery-Session-Token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx", //<--- master key
"FieldToBeUpdated": "updated value"
}
Collection.updateObject("xxxxxxxxxxxxxxxxxxxxxxxx", "CollectionnName", "objectID", updatedSettings);
/code
I have also tried to use this to get a token instead of using the master key...
code
var token = DatabaseUser.login(DB_id, userName, userPass).sessionToken;
/code