Search documentation…
/
API Reference
Update username
API Reference
MCP Reference
API Reference
API Reference
MCP Reference
Introduction
Content
Topics
Posts
Private Messages
Categories
Tags
Search
Uploads
Events
Community
Users
POST
Grant a badge to a user
GET
List badges for a user
POST
Creates a user
GET
Get a single user by username
PUT
Update a user
GET
Get a user by external_
id
GET
Get a user by identity provider external ID
PUT
Update avatar
PUT
Update email
PUT
Update username
GET
Get a public list of users
GET
Get a user by id
DEL
Delete a user
PUT
Activate a user
PUT
Deactivate a user
PUT
Suspend a user
PUT
Silence a user
PUT
Anonymize a user
POST
Merge a user
POST
Log a user out
POST
Refresh gravatar
GET
List users
GET
List users by flag
GET
Get a list of user actions
POST
Send password reset email
PUT
Change password
GET
Get email addresses belonging to a user
Groups
Invites
Badges
Notifications
Site and administration
Site
Admin
Backups
Users
Update username
PUT
https://discourse.example.com
/
u
/
{username}
/
preferences
/
username.json
Try it
Body
application/json
new_
username
string
required
Parameters
username
string
required
path
Response
200
OK
username updated
← Previous
Update email
Next →
Get a public list of users
Docs by Sourcey