chat: markChatUnreadForUser

Namespace: microsoft.graph

Mark a chat as unread for a user.


One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Chat.ReadWrite
Delegated (personal Microsoft account) Not supported.
Application Not supported.

HTTP request

POST /chats/{chat-id}/markChatUnreadForUser

Request headers

Name Description
Authorization Bearer {token}. Required.
Content-Type application/json. Required.

Request body

In the request body, supply a JSON representation of the parameters.

The following table shows the parameters that can be used with this action.

Parameter Type Description
lastMessageReadDateTime DateTimeOffset Timestamp that indicates the time after which all sent or received messages are to be marked as unread.
user teamworkUserIdentity User to unread the chat for.

Note: lastMessageReadDateTime is optional in the request. If not mentioned, the last message would be marked as unread.


If successful, this action returns a 204 No Content response code.



Content-Type: application/json
Content-length: 158

  "user": {
    "id" : "d864e79f-a516-4d0f-9fee-0eeb4d61fdc2",
    "tenantId": "2a690434-97d9-4eed-83a6-f5f13600199a"
  "lastMessageReadDateTime": "2021-05-27T22:13:01.577Z"


HTTP/1.1 204 No Content