I am running a server-side script that requires using the Master Key, so I can't use the server code script API. However, I can't find a REST equivalent of the multiUpdateObject() function. Is what I'm trying to do impossible?
I am running a server-side script that requires using the Master Key, so I can't use the server code script API. However, I can't find a REST equivalent of the multiUpdateObject() function. Is what I'm trying to do impossible?
Hello,
Nope, currently REST API doesn't sopports this functionality.
But if you need this you can write simple server code script to do it.
Please take a look how to work with server code here: http://devcenter.appery.io/tutorials/
Also here is more information about server code: http://devcenter.appery.io/documentat...
Regards.
Sorry, I must not have worded my question clearly.
In the context of a server-side script, I would like to modify several objects in the same table. However, the session token/userid that calls the server script doesn't have write access to the objects, so the Master Key must be used to perform the modifications on the objects.
Currently the only way that I see to do this from a server side script is to have a loop that makes a REST API request with the master key for every object that needs to be modified. I was wondering if there was a better way to do this that I'm missing.
Thanks for your help!
Hi axkrishnan,
Yes you are right,
Unfortunatly currently this function does not support using master key.
So only way is to loop all objects to update in separate DB request(where you can pass master key).
Regards.