2022-05-11 15:39:36 +01:00
|
|
|
---
|
|
|
|
title: Supported admin APIs
|
|
|
|
parent: Administration
|
|
|
|
permalink: /administration/adminapi
|
|
|
|
---
|
|
|
|
|
|
|
|
# Supported admin APIs
|
|
|
|
|
|
|
|
Dendrite supports, at present, a very small number of endpoints that allow
|
|
|
|
admin users to perform administrative functions. Please note that there is no
|
|
|
|
API stability guarantee on these endpoints at present — they may change shape
|
|
|
|
without warning.
|
|
|
|
|
|
|
|
More endpoints will be added in the future.
|
|
|
|
|
2022-08-12 12:00:07 +01:00
|
|
|
## GET `/_dendrite/admin/evacuateRoom/{roomID}`
|
2022-05-11 15:39:36 +01:00
|
|
|
|
|
|
|
This endpoint will instruct Dendrite to part all local users from the given `roomID`
|
|
|
|
in the URL. It may take some time to complete. A JSON body will be returned containing
|
|
|
|
the user IDs of all affected users.
|
|
|
|
|
2022-08-12 12:00:07 +01:00
|
|
|
## GET `/_dendrite/admin/evacuateUser/{userID}`
|
2022-06-29 15:29:39 +01:00
|
|
|
|
|
|
|
This endpoint will instruct Dendrite to part the given local `userID` in the URL from
|
|
|
|
all rooms which they are currently joined. A JSON body will be returned containing
|
|
|
|
the room IDs of all affected rooms.
|
|
|
|
|
2022-08-12 12:00:07 +01:00
|
|
|
## POST `/_dendrite/admin/resetPassword/{localpart}`
|
|
|
|
|
|
|
|
Request body format:
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"password": "new_password_here"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
Reset the password of a local user. The `localpart` is the username only, i.e. if
|
|
|
|
the full user ID is `@alice:domain.com` then the local part is `alice`.
|
|
|
|
|
|
|
|
## GET `/_synapse/admin/v1/register`
|
2022-05-11 15:39:36 +01:00
|
|
|
|
|
|
|
Shared secret registration — please see the [user creation page](createusers) for
|
|
|
|
guidance on configuring and using this endpoint.
|