How to enable relay to the Cloud using API
Once the VXG Server is connected to VXG Cloud, you can relay each channel to the Cloud - this will create a copy of the Server channel in your Cloud account. This can be done in the Server user interface, in the channel settings, but also you can manage the channel-by-channel relay using the Server API:
Enable relay:
curl -X PUT "http://SERVER_IP_ADDRESS:83/api/v3/channels/1/" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: LKey SERVER_API_KEY" -d "{"relay_to": [1]}"
Disable relay:
curl -X PUT "http://SERVER_IP_ADDRESS:83/api/v3/channels/1/" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: LKey SERVER_API_KEY" -d "{"relay_to": []}"