Update Host Registration URL programmatically

Hi all, is there any way to programmatically update the Host Registration Url, as I have an internal load balancer, with internal dns records, that differ from the server public dns, and all agent traffic inc initial registration is kept internal.

I basically want to automate the process of going into the admin / settings menu, and updating the url to something else.

Thanks Andrew

PUT /v2-beta/settings/api.host with {"value": "http://foo.com:8080"} . The UI is 100% static client-side JS, so anything it does you can see in the browser dev tools network tab.

Wicked thanks man :smile: