Docs: Add Chat mark_as_read docs
This commit is contained in:
parent
b04328c3de
commit
7ff2a7dae2
1 changed files with 21 additions and 0 deletions
|
@ -66,6 +66,27 @@ Returned data:
|
|||
}
|
||||
```
|
||||
|
||||
### Marking a chat as read
|
||||
|
||||
To set the `unread` count of a chat to 0, call
|
||||
|
||||
`POST /api/v1/pleroma/chats/:id/read`
|
||||
|
||||
Returned data:
|
||||
|
||||
```json
|
||||
{
|
||||
"account": {
|
||||
"id": "someflakeid",
|
||||
"username": "somenick",
|
||||
...
|
||||
},
|
||||
"id" : "1",
|
||||
"unread" : 0
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Getting a list of Chats
|
||||
|
||||
`GET /api/v1/pleroma/chats`
|
||||
|
|
Loading…
Reference in a new issue