# Change hostname using API

**URL:** https://meta.discourse.org/t/change-hostname-using-api/166067
**Category:** Development
**Tags:** rest-api
**Created:** [October 3, 2020, 3:22am UTC](https://meta.discourse.org/t/change-hostname-using-api/166067 "2020-10-03T03:22:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Retes88t](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/retes88t/32/184859_2.png) [@Retes88t](https://meta.discourse.org/u/Retes88t)
#### Post date: [October 3, 2020, 3:22am UTC](https://meta.discourse.org/t/change-hostname-using-api/166067/1 "2020-10-03T03:22:15Z")

</div>

I’m trying to change the hostname parameter, but the API returns “not allowed”, I don’t know what need to be able to change this value through API

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/d/1d0430c9a53786f90b117dba5101902b4152460d.png)

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [October 4, 2020, 4:30pm UTC](https://meta.discourse.org/t/change-hostname-using-api/166067/2 "2020-10-04T16:30:03Z")

</div>

This is one of those settings that you should update via the app.yml file by ssh’ing into your server (if you are self hosted) and then running `./launcher restart app`
