mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 20:27:44 +00:00
docs(admin): added missing updateUser api (#4846)
This commit is contained in:
@@ -259,6 +259,29 @@ type setUserPassword = {
|
||||
```
|
||||
</APIMethod>
|
||||
|
||||
### Update user
|
||||
|
||||
Update a user's details.
|
||||
|
||||
<APIMethod
|
||||
path="/admin/update-user"
|
||||
method="POST"
|
||||
requireSession
|
||||
>
|
||||
```ts
|
||||
type adminUpdateUser = {
|
||||
/**
|
||||
* The user id which you want to update.
|
||||
*/
|
||||
userId: string = "user-id"
|
||||
/**
|
||||
* The data to update.
|
||||
*/
|
||||
data: Record<string, any> = { name: "John Doe" }
|
||||
}
|
||||
```
|
||||
</APIMethod>
|
||||
|
||||
### Ban User
|
||||
|
||||
Bans a user, preventing them from signing in and revokes all of their existing sessions.
|
||||
|
||||
Reference in New Issue
Block a user