Contents
Mark mention as unread
A mention was marked as unread.
Method
PUT
URL
https://typetalk.com/api/v1/mentions/:mentionId/unread
Scope
my
URL parameters
Name | Type | Description |
---|---|---|
mentionId | Number | Mention ID |
Response Example
{
"mention": {
"id": 501,
"readAt": "2016-12-21T10:12:13Z",
"post": {
"id": 309,
"topicId": 203,
"topic": {
"id": 203,
"name": "Techies",
"suggestion": "Techies",
"isDirectMessage": false,
"lastPostedAt": "2014-06-30T02:32:29Z",
"createdAt": "2014-06-05T02:32:29Z",
"updatedAt": "2014-06-05T02:32:29Z"
},
"replyTo": null,
"message": "@jessica Help me!",
"account": {
"id": 102,
"name": "moss",
"fullName": "Moss",
"suggestion": "Moss",
"imageUrl": "https://typetalk.com/accounts/102/profile_image.png?t=1403749949000",
"isBot": false,
"createdAt": "2014-06-26T02:32:29Z",
"updatedAt": "2014-06-26T02:32:29Z"
},
"attachments": [],
"links": [],
"directMessage": null,
"createdAt": "2014-07-02T03:32:29Z",
"updatedAt": "2014-07-02T03:32:29Z"
}
}
}
All responses are formatted in JSON and include an ETag. If you call an API with an If-None-Match header, the server will return a 304 status code if the data is unchanged. The date and time format is ISO 8601, and the timezone is UTC (eg. 2014-01-09T06:20:08Z).