diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2022-01-31 17:24:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 16:24:29 +0000 |
commit | 0da2301b21399b85a955d92dc355024a67b8cb40 (patch) | |
tree | 6f0f4f5c7e5250e44ca820d3706d738ab1c9c13d /docs/admin_api/media_admin_api.md | |
parent | Remove the obsolete MSC1849 configuration flag. (#11843) (diff) | |
download | synapse-0da2301b21399b85a955d92dc355024a67b8cb40.tar.xz |
Consolidate the `access_token` information in the admin api (#11861)
Co-authored-by: reivilibre <olivier@librepush.net>
Diffstat (limited to 'docs/admin_api/media_admin_api.md')
-rw-r--r-- | docs/admin_api/media_admin_api.md | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/admin_api/media_admin_api.md b/docs/admin_api/media_admin_api.md index 2c44e1f758..a8cdf19727 100644 --- a/docs/admin_api/media_admin_api.md +++ b/docs/admin_api/media_admin_api.md @@ -2,6 +2,9 @@ These APIs allow extracting media information from the homeserver. +To use it, you will need to authenticate by providing an `access_token` +for a server admin: see [Admin API](../usage/administration/admin_api). + ## List all media in a room This API gets a list of known media in a room. @@ -11,8 +14,6 @@ The API is: ``` GET /_synapse/admin/v1/room/<room_id>/media ``` -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 returns a JSON body like the following: ```json @@ -300,8 +301,5 @@ The following fields are returned in the JSON response body: * `deleted`: integer - The number of media items successfully deleted -To use it, you will need to authenticate by providing an `access_token` for a -server admin: see [Admin API](../usage/administration/admin_api). - If the user re-requests purged remote media, synapse will re-request the media from the originating server. |