Lock an object from REST API


#1

Hey everyone,

I just recently started working with the REST API which is awesome.

My project requires to get an object and at the same time lock it for other users. Is there a way to add the corresponding entry to db.tree_locks via the REST API?
Looking it the docs it doesn’t look like it to me but maybe I’m missing something.

Thanks for your help!
Cheers


#2

So I created a custom Controller that is accessible on a Static Route.
Is this the preferred/optimal way?

Thanks