mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-10 11:49:59 -04:00
Consolidate the access_token
information in the admin api (#11861)
Co-authored-by: reivilibre <olivier@librepush.net>
This commit is contained in:
parent
02755c3188
commit
0da2301b21
10 changed files with 30 additions and 95 deletions
|
@ -10,15 +10,15 @@ paginate further back in the room from the point being purged from.
|
|||
Note that Synapse requires at least one message in each room, so it will never
|
||||
delete the last message in a room.
|
||||
|
||||
To use it, you will need to authenticate by providing an `access_token`
|
||||
for a server admin: see [Admin API](../usage/administration/admin_api).
|
||||
|
||||
The API is:
|
||||
|
||||
```
|
||||
POST /_synapse/admin/v1/purge_history/<room_id>[/<event_id>]
|
||||
```
|
||||
|
||||
To use it, you will need to authenticate by providing an `access_token` for a
|
||||
server admin: [Admin API](../usage/administration/admin_api)
|
||||
|
||||
By default, events sent by local users are not deleted, as they may represent
|
||||
the only copies of this content in existence. (Events sent by remote users are
|
||||
deleted.)
|
||||
|
@ -57,9 +57,6 @@ It is possible to poll for updates on recent purges with a second API;
|
|||
GET /_synapse/admin/v1/purge_history_status/<purge_id>
|
||||
```
|
||||
|
||||
Again, you will need to authenticate by providing an `access_token` for a
|
||||
server admin.
|
||||
|
||||
This API returns a JSON body like the following:
|
||||
|
||||
```json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue