Edit message

Edit a message you posted.

Method

PUT

URL

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

Scope

topic.post

URL parameters

Name Type Description
topicId Number Topic ID
postId Number Post ID

Form parameters

Name Type Description
message String your message, ( max 4000 characters )
showLinkMeta (Optional) Boolean show OGP data of URL included in message. default value: true

Response Example

{
    "space": {
        "key": "xxxxxxxxx",
        "name": "Awesome Tech Inc.",
        "enabled": true,
        "imageUrl": "https://apps.nulab.com/spaces/xxxxxxxxx/photo/large"
    },
    "topic": {
        "id": 4483,
        "name": "Design",
        "suggestion": "Design",
        "isDirectMessage": false,
        "lastPostedAt": "2018-11-28T06:01:45Z",
        "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!"
    },
    "post": {
        "id": 164018,
        "topicId": 4483,
        "replyTo": null,
        "message": "How about this wallpaper?",
        "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-28T05:59:16Z"
        },
        "mention": null,
        "attachments": [
            {
                "attachment": {
                    "contentType": "image/jpeg",
                    "fileKey": "c5082a1da3e99ecc97b8e5119781ac2b82e18dfa",
                    "fileName": "wallpaper.jpg",
                    "fileSize": 14356
                },
                "webUrl": "https://typetalk.com/topics/4483/posts/164018/attachments/1/wallpaper.jpg",
                "apiUrl": "https://typetalk.com/api/v1/topics/4483/posts/164018/attachments/1/wallpaper.jpg",
                "thumbnails": [
                    {
                        "type": "small",
                        "fileSize": 14356,
                        "width": 198,
                        "height": 125
                    },
                    {
                        "type": "medium",
                        "fileSize": 14356,
                        "width": 198,
                        "height": 125
                    },
                    {
                        "type": "large",
                        "fileSize": 14356,
                        "width": 198,
                        "height": 125
                    }
                ]
            }
        ],
        "likes": [],
        "talks": [],
        "links": [],
        "createdAt": "2018-04-18T06:56:37Z",
        "updatedAt": "2018-11-28T06:01:45Z"
    },
    "mentions": [],
    "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).