# Update Host Registration URL programmatically

**URL:** https://forums.suse.com/t/update-host-registration-url-programmatically/9791
**Category:** General
**Created:** [March 15, 2018, 3:07pm UTC](https://forums.suse.com/t/update-host-registration-url-programmatically/9791 "2018-03-15T15:07:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Andrew\_Bourne](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@Andrew\_Bourne](https://forums.suse.com/u/Andrew_Bourne)
#### Post date: [March 15, 2018, 3:07pm UTC](https://forums.suse.com/t/update-host-registration-url-programmatically/9791/1 "2018-03-15T15:07:32Z")

</div>

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

---

<div class="post-metadata">

### Author: ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)
#### Post date: [March 15, 2018, 3:18pm UTC](https://forums.suse.com/t/update-host-registration-url-programmatically/9791/2 "2018-03-15T15:18:24Z")

</div>

`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.

---

<div class="post-metadata">

### Author: ![Andrew\_Bourne](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@Andrew\_Bourne](https://forums.suse.com/u/Andrew_Bourne)
#### Post date: [March 15, 2018, 3:31pm UTC](https://forums.suse.com/t/update-host-registration-url-programmatically/9791/3 "2018-03-15T15:31:50Z")

</div>

Wicked thanks man 😄  
Andrew
