# Updating email preferences via API

**URL:** <https://meta.discourse.org/t/updating-email-preferences-via-api/65983>\
**Category:** Product Support\
**Created:** [July 11, 2017, 5:10am UTC](https://meta.discourse.org/t/updating-email-preferences-via-api/65983 "2017-07-11T05:10:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [July 14, 2017, 11:27pm UTC](https://meta.discourse.org/t/updating-email-preferences-via-api/65983/4 "2017-07-14T23:27:52Z")

</div>

At some point we renamed the `/users` endpoint to `/u` so that we can have pretty short urls in the browser like we do for topics and categories. If you do

```
$ rake routes | grep username

```

you will see most of the routes and I think currently most of the `/users` ones have duplicate `/u` routes. The line is generating the `/u` routes:

> <https://github.com/discourse/discourse/blob/main/config/routes.rb#L311>

but I believe there are still some `/users` routes that don’t have a matching `/u` route.

---

_[View the full topic](https://meta.discourse.org/t/updating-email-preferences-via-api/65983)._
