Hello Marty,
Developing Data actions is more developer level so this might question might be better suited for the developer forum.
But I believe the endpoint you might want to use is /api/v2/routing/queues/{queueId}.
Just be careful as I have seen many a customer who have implemented something like this and get rate limited very fast especially on high volume days. You can get an overview of our limits here.
To avoid the above situation you can also build your flows with resilience using the points marked out in this documentation.
As for developing a data action, specifically syntax I would go to the developer forums and look there.
Hope this helps.
Cheers,
------------------------------
Cameron Tomlin
Online Community Manager/Moderator
Genesys - Employees
------------------------------