Page 1 of 1

Use multiUpdateObject through the REST API?

Posted: Tue Jul 29, 2014 12:14 am
by axkrishnan

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?


Use multiUpdateObject through the REST API?

Posted: Tue Jul 29, 2014 4:26 am
by Yurii Orishchuk

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.


Use multiUpdateObject through the REST API?

Posted: Tue Jul 29, 2014 9:11 pm
by axkrishnan

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!


Use multiUpdateObject through the REST API?

Posted: Wed Jul 30, 2014 12:47 am
by Yurii Orishchuk

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.