summary refs log tree commit diff
path: root/docs/admin_api/media_admin_api.md
diff options
context:
space:
mode:
authorRichard van der Hoff <github@rvanderhoff.org.uk>2018-02-02 11:41:03 +0100
committerGitHub <noreply@github.com>2018-02-02 11:41:03 +0100
commit33cac3dc2978719c2b48c373d80539e14f21ee48 (patch)
tree35701fcc0456593d736a3405f72a5dfd624b1cad /docs/admin_api/media_admin_api.md
parentMerge pull request #2837 from matrix-org/rav/fix_quarantine_media (diff)
parentMerge branch 'develop' into travis/admin-list-media (diff)
downloadsynapse-33cac3dc2978719c2b48c373d80539e14f21ee48.tar.xz
Merge pull request #2818 from turt2live/travis/admin-list-media
Add an admin route to get all the media in a room
Diffstat (limited to 'docs/admin_api/media_admin_api.md')
-rw-r--r--docs/admin_api/media_admin_api.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/admin_api/media_admin_api.md b/docs/admin_api/media_admin_api.md
new file mode 100644

index 0000000000..abdbc1ea86 --- /dev/null +++ b/docs/admin_api/media_admin_api.md
@@ -0,0 +1,23 @@ +# List all media in a room + +This API gets a list of known media in a room. + +The API is: +``` +GET /_matrix/client/r0/admin/room/<room_id>/media +``` +including an `access_token` of a server admin. + +It returns a JSON body like the following: +``` +{ + "local": [ + "mxc://localhost/xwvutsrqponmlkjihgfedcba", + "mxc://localhost/abcdefghijklmnopqrstuvwx" + ], + "remote": [ + "mxc://matrix.org/xwvutsrqponmlkjihgfedcba", + "mxc://matrix.org/abcdefghijklmnopqrstuvwx" + ] +} +```