Marks a single thread as read for the authenticated user and removes it from the unread thread list in the user's subscription.
Use this endpoint when you need to mark one thread as read. The subscriptions.read endpoint operates on an entire room and cannot identify a single thread.
This endpoint replaces the deprecated readThreads realtime method, which remains available until Rocket.Chat 9.0.0.
Changelog
| Version | Description |
|---|---|
| 8.8.0 | Added |
The authToken of the authenticated user.
The userId of the authenticated user.
{
"tmid": "7aDSXtjMA3KPLxLjt"
}The ID of the thread's main message.
OK
{
"success": true
}The request is invalid, threads are disabled, the message or room does not exist, or the user cannot access the room.
{
"success": false,
"error": "Threads Disabled [error-not-allowed]",
"errorType": "error-not-allowed"
}{
"success": false,
"error": "Invalid Message [error-invalid-message]",
"errorType": "error-invalid-message"
}{
"success": false,
"error": "This room does not exist [error-room-does-not-exist]",
"errorType": "error-room-does-not-exist"
}{
"success": false,
"error": "Not Allowed [error-not-allowed]",
"errorType": "error-not-allowed"
}Unauthorized
{
"status": "error",
"message": "You must be logged in to do this."
}