projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'chore/remove-reference-to-distsn' into 'develop'
[akkoma]
/
docs
/
API
/
chats.md
diff --git
a/docs/API/chats.md
b/docs/API/chats.md
index 761047336f089da8d2d5712e435eb0ebe892f532..aa6119670449c4887cc22cec3c291231b30a8138 100644
(file)
--- a/
docs/API/chats.md
+++ b/
docs/API/chats.md
@@
-75,10
+75,15
@@
Returned data:
### Marking a chat as read
### 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`
`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
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 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
### Getting the messages for a Chat