Contents

Like message

Like a posted message.

Method

POST

URL

https://typetalk.com/api/v1/topics/:topicId/posts/:postId/like

Scope

topic.post

URL parameters

NameTypeDescription
topicIdNumberTopic ID
postIdNumberPost ID

Response Example

{
    "space": {
        "key": "xxxxxxxx",
        "name": "Awesome Tech Inc.",
        "enabled": true,
        "imageUrl": "https://apps.nulab.com/spaces/xxxxxxxx/photo/large"
    },
    "like": {
        "id": 20050,
        "postId": 167373,
        "topicId": 4483,
        "comment": "",
        "account": {
            "id": 2500,
            "name": "Jessica",
            "fullName": "Jessica",
            "suggestion": "Jessica",
            "imageUrl": "https://typetalk.com/accounts/2500/profile_image.png?t=1454061730873",
            "isBot": false,
            "createdAt": "2016-01-27T09:55:35Z",
            "updatedAt": "2018-11-27T23:50:39Z"
        },
        "createdAt": "2018-11-27T23:51:44Z"
    },
    "post": {
        "id": 167373,
        "topicId": 4483,
        "replyTo": 167210,
        "message": "Hi @Jessica ?",
        "account": {
            "id": 2497,
            "name": "Will",
            "fullName": "Will",
            "suggestion": "Will",
            "imageUrl": "https://typetalk.com/accounts/2497/profile_image.png?t=1510596200433",
            "isBot": false,
            "createdAt": "2016-01-27T09:54:48Z",
            "updatedAt": "2018-11-13T00:26:14Z"
        },
        "mention": {
            "id": 16805,
            "readAt": "2018-09-25T07:08:45Z"
        },
        "attachments": [],
        "likes": [],
        "talks": [],
        "links": [],
        "createdAt": "2018-09-25T04:42:47Z",
        "updatedAt": "2018-09-25T04:42:47Z"
    },
    "topic": {
        "id": 4483,
        "name": "Design",
        "suggestion": "Design",
        "isDirectMessage": false,
        "lastPostedAt": "2018-09-25T04:42:47Z",
        "createdAt": "2017-03-21T20:04:45Z",
        "updatedAt": "2018-09-19T06:02:29Z",
        "description": "All about the world of visual design which include app ui/ux, website, news, tips and occasional banter among designers. Oh, and don't forget the weekend together.\n\nSome housekeeping:\n  1. Share your work and comment on others' work in a nice manners.\n  2. Report any issue to @Stefanie\n  3. Have fun typetalkin'! https://typetalk.com\n\nNote that this topic is open to everyone in the team!"
    },
    "directMessage": null
}

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).