# Changing a user's email address via api

**URL:** <https://meta.discourse.org/t/changing-a-users-email-address-via-api/41027>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [14 Marzo, 2016 16:43 UTC](https://meta.discourse.org/t/changing-a-users-email-address-via-api/41027 "2016-03-14T16:43:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![paully21](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paully21/32/72673_2.png) [@paully21](https://meta.discourse.org/u/paully21)\
**Post date:** [14 Marzo, 2016 16:43 UTC](https://meta.discourse.org/t/changing-a-users-email-address-via-api/41027/1 "2016-03-14T16:43:27Z")

</div>

We have a section on our website that allows users to manage their Discourse account preferences. Most of our users only use Discourse as a sort of mailing list, so we made it easy for them to manage that activity within their website account.

I need to be able to modify the user’s email address via an api call. We do all sorts of stuff with api calls now, but I can’t figure out how to change the email address.

I’m guessing I need the update action of the `UsersEmailController` ([https://github.com/discourse/discourse/blob/master/app/controllers/users\_email\_controller.rb](https://github.com/discourse/discourse/blob/master/app/controllers/users_email_controller.rb)) but I don’t know how to reach that endpoint.

Does anyone know the URL of the endpoint to change a user’s email address (using the api key and api username method)?

Thanks!

---

_[View the full topic](https://meta.discourse.org/t/changing-a-users-email-address-via-api/41027)._
