From: lain Date: Mon, 4 May 2020 11:12:21 +0000 (+0200) Subject: Docs: Add Chat mark_as_read docs X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=7ff2a7dae2fa651cea579aeca40e2c030d19fcd5;p=akkoma Docs: Add Chat mark_as_read docs --- diff --git a/docs/API/chats.md b/docs/API/chats.md index 26e83570e..8d925989c 100644 --- a/docs/API/chats.md +++ b/docs/API/chats.md @@ -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`