X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=docs%2FAPI%2Fchats.md;h=aa6119670449c4887cc22cec3c291231b30a8138;hb=60d4c6c91d390633a6e765b51295e8b300ee9efe;hp=761047336f089da8d2d5712e435eb0ebe892f532;hpb=c5e3f2454c736e09de5c433a2bf578e8eb0e70c3;p=akkoma diff --git a/docs/API/chats.md b/docs/API/chats.md index 761047336..aa6119670 100644 --- a/docs/API/chats.md +++ b/docs/API/chats.md @@ -75,10 +75,15 @@ 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. Required. + + Returned data: ```json @@ -130,7 +135,7 @@ Returned data: ``` The recipient of messages that are sent to this chat is given by their AP ID. -The usual pagination options are implemented. +No pagination is implemented for now. ### Getting the messages for a Chat