Update documentation

This commit is contained in:
Niels Andriesse 2021-04-29 10:28:38 +10:00 committed by GitHub
parent 889f5cf436
commit 24d9305284
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions

View File

@ -324,6 +324,31 @@ Get messages from the server. If `from_server_id` is set only messages stored af
}
```
### POST /delete_messages
| Header | Required | Notes |
| ------------- | -------- | ------------------ |
| Authorization | Yes | Basic OR Moderator |
| Room | Yes | |
Deletes the messages with the given IDs from the server. The requesting user must either be the sender of the messages or have moderation permission.
**Expected body:**
```
{
ids: [ 0, 1, 2, ... ], // the server IDs of the messages to delete
}
```
**Response:**
```
{
status_code: u16
}
```
### DELETE /messages/:message_id
| Header | Required | Notes |