diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2021-05-26 12:19:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-26 11:19:47 +0100 |
commit | 65e6c64d8317d3a10527a7e422753281f3e9ec81 (patch) | |
tree | c2c95b4051d40ee29d2b02af3946f630c547862d /docs/admin_api | |
parent | Update CAPTCHA documentation to mention turning off verify origin feature (#1... (diff) | |
download | synapse-65e6c64d8317d3a10527a7e422753281f3e9ec81.tar.xz |
Add an admin API for unprotecting local media from quarantine (#10040)
Signed-off-by: Dirk Klimpel dirk@klimpel.org
Diffstat (limited to 'docs/admin_api')
-rw-r--r-- | docs/admin_api/media_admin_api.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/admin_api/media_admin_api.md b/docs/admin_api/media_admin_api.md index 9dbec68c19..d1b7e390d5 100644 --- a/docs/admin_api/media_admin_api.md +++ b/docs/admin_api/media_admin_api.md @@ -7,6 +7,7 @@ * [Quarantining media in a room](#quarantining-media-in-a-room) * [Quarantining all media of a user](#quarantining-all-media-of-a-user) * [Protecting media from being quarantined](#protecting-media-from-being-quarantined) + * [Unprotecting media from being quarantined](#unprotecting-media-from-being-quarantined) - [Delete local media](#delete-local-media) * [Delete a specific local media](#delete-a-specific-local-media) * [Delete local media by date or size](#delete-local-media-by-date-or-size) @@ -159,6 +160,26 @@ Response: {} ``` +## Unprotecting media from being quarantined + +This API reverts the protection of a media. + +Request: + +``` +POST /_synapse/admin/v1/media/unprotect/<media_id> + +{} +``` + +Where `media_id` is in the form of `abcdefg12345...`. + +Response: + +```json +{} +``` + # Delete local media This API deletes the *local* media from the disk of your own server. This includes any local thumbnails and copies of media downloaded from |