Set maximum Conversation unread
Operation boundary
- Caller: Trusted backend only
- Scope: Requests for missing or removed Memberships or deleted Channels leave state unchanged.
- Success: read_seq advances monotonically, so the unread count can only decrease or stay the same. The service refreshes activated_at even when the read position stays the same.
- Recovery: If activation fails after the read position commits, retry the same request to finish activation.
POST
/conversations/setUnreadAdvances read_seq so at most unread messages remain, and refreshes conversation activation even when the read position stays the same.
Request Body
application/json
User Conversation key and maximum unread count to retain.
TypeScript Definitions
Use the request body type in TypeScript.
Parameters for setting a Conversation maximum unread count.
Response Body
application/json
application/json
application/json
{ "status": 200}