From: lain Date: Sun, 7 Jun 2020 18:23:17 +0000 (+0200) Subject: Docs: Document new mandatory parameter. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=1a2acce7c5927cd113ebcffd0acc7a5c547bbf0e;p=akkoma Docs: Document new mandatory parameter. --- diff --git a/docs/API/chats.md b/docs/API/chats.md index 81ff57941..9eb581943 100644 --- a/docs/API/chats.md +++ b/docs/API/chats.md @@ -75,13 +75,13 @@ Returned data: ### Marking a chat as read -To set the `unread` count of a chat to 0, call +To mark a number of messages in a chat up to a certain message as read, you can use `POST /api/v1/pleroma/chats/:id/read` Parameters: -- last_read_id: Given this id, all chat messages until this one will be marked as read. This should always be used. +- last_read_id: Given this id, all chat messages until this one will be marked as read. Required. Returned data: