Kibana Custom Visulaization Session Object

Hello Team,

As explained in Solving Concurrency Issues , i am thinking of creating a transaction

user 1 logs in opens UI -> get lock using API
PUT /fs/lock/<index_name>/_create { "lock_type": "exclusive" }

user1 will perform operations like update/delete etc

and releases lock using API
DELETE /fs/lock/<index_name>

If any other user logs in and tries to access the UI the lock API will try to acquire the lock on the same index but will get error since other user has already acquired an exclusive lock(Checked this by executing APIs from Kibana Dev Tools).

To test the scenario i need to implement it Kibana custom visualization, to understand how can i execute lock APIs using CallWithRequest Client, I have opened a new topic [here](How to call lock APIs using call with request

Thank you,
Aditya