Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
write some docs for the quarantine_media api (#6458)
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh authored Dec 3, 2019
1 parent fdec84a commit 620f98b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/6458.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Write some docs for the quarantine_media api.
17 changes: 17 additions & 0 deletions docs/admin_api/media_admin_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,20 @@ It returns a JSON body like the following:
]
}
```

# Quarantine media in a room

This API 'quarantines' all the media in a room.

The API is:

```
POST /_synapse/admin/v1/quarantine_media/<room_id>
{}
```

Quarantining media means that it is marked as inaccessible by users. It applies
to any local media, and any locally-cached copies of remote media.

The media file itself (and any thumbnails) is not deleted from the server.

0 comments on commit 620f98b

Please sign in to comment.