Update documentation

This commit is contained in:
Niels Andriesse 2021-07-13 14:16:08 +10:00
parent 3010309a28
commit 897957f3a2
1 changed files with 26 additions and 1 deletions

View File

@ -232,7 +232,7 @@ Poll for new messages, new deletions and the current moderator list for multiple
{
room_id: String,
status_code: u16,
deletions: [
deletions: [
{
deletion_server_id: i64,
deleted_message_id: i64
@ -435,6 +435,31 @@ Ban the given public key from the server.
}
```
### POST /ban_and_delete_all
| Header | Required | Notes |
| ------------- | -------- | --------- |
| Authorization | Yes | Moderator |
| Room | Yes | |
Ban the given public key from the server and delete all messages sent by them.
**Expected body:**
```
{
public_key: String
}
```
**Response:**
```
{
status_code: u16
}
```
### DELETE /block_list/:public_key
| Header | Required | Notes |