# How does one change a username via the API?

**URL:** <https://meta.discourse.org/t/how-does-one-change-a-username-via-the-api/96118>\
**Category:** Product Support\
**Created:** [31 באוגוסט,‏ 2018,‏ 9:05pm UTC](https://meta.discourse.org/t/how-does-one-change-a-username-via-the-api/96118 "2018-08-31T21:05:51Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jezra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jezra/32/105986_2.png) [@jezra](https://meta.discourse.org/u/jezra)\
**Post date:** [31 באוגוסט,‏ 2018,‏ 9:05pm UTC](https://meta.discourse.org/t/how-does-one-change-a-username-via-the-api/96118/1 "2018-08-31T21:05:51Z")

</div>

While using the API and making a put request to:  
MYDISCOURSE/users/MYUSER?api\_key=MYSYSTEMAPIKEY&api\_username=system  
with a json payload of:  
{“username”:“helloworld”}  
I am receiving a response with a code of 200 and a body that indicates the username has not been changed.

---

_[View the full topic](https://meta.discourse.org/t/how-does-one-change-a-username-via-the-api/96118)._
