Automation: How to automate video switching

Ok, so I answered my own question for those who are interested:

Right Click on the button you want to automate in the video switcher and select Copy Api Endpoint and you will receive something like this:
/api/v1/documents/378048406/layers/04C55267-AA27-4A71-8CD4-0FD193BBD57C/signals/tvGroup_Control__Cut_2_TypeSignal

Grab this from the string:
04C55267-AA27-4A71-8CD4-0FD193BBD57C/signals/tvGroup_Control__Cut_2_TypeSignal

and create your commands like so:
layerOn(04C55267-AA27-4A71-8CD4-0FD193BBD57C/signals/tvGroup_Control__Cut_2_TypeSignal#) layerOn(Endpoint#)