Docs: Add Chat mark_as_read docs
This commit is contained in:
parent
b04328c3de
commit
7ff2a7dae2
|
@ -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 New Issue