I have written and registered an app at
https://developers.restream.io/app/
to allow me to remotely enable and disable channels using the Restream API, I have it all working correctly I have confirmed that I can authorize, and enable and disable channel destinations.
Using Channel Events (Twitch, FB, LinkedIn) they work fine.
as described here: https://developers.restream.io/docs#channel-update
but not YouTube - that doesn't work I get a 502 bad gateway error
GET works fine returning the status and channel information includuing the YouTube Channel, and as I say the other channels are working fine.
I can enable/disable the YoutTube channel via the restream.io web interface so I know the connection and destination is OK.
There doesnt seem to be any help or support for developers, so I thought I'd try it here and see if I got anywhere - thanks.