Skip to main content
Skip table of contents

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:

CODE
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:

CODE
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": []}"

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.