Update message

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

Query parameters

Name Type Description
message String your message, ( max 4000 characters )

Response Example

{
  "topic": {
    "id": 208,
    "name": "IT Peeps",
    "description": "",
    "suggestion": "IT Peeps",
    "isDirectMessage": false,
    "lastPostedAt": "2016-12-21T10:12:02Z",
    "createdAt": "2014-06-10T02:32:29Z",
    "updatedAt": "2014-06-10T02:32:29Z"
  },
  "post": {
    "id": 307,
    "topicId": 208,
    "replyTo": 306,
    "message": "your message",
    "account": {
      "id": 100,
      "name": "jessica",
      "fullName": "Jessica Fitzherbert",
      "suggestion": "Jessica Fitzherbert",
      "imageUrl": "https://typetalk.com/accounts/100/profile_image.png?t=1403577149000",
      "isBot": false,
      "createdAt": "2014-06-24T02:32:29Z",
      "updatedAt": "2014-06-24T02:32:29Z"
    },
    "mention": null,
    "attachments": [],
    "likes": [
      {
        "id": 408,
        "postId": 307,
        "topicId": 208,
        "comment": null,
        "account": {
          "id": 100,
          "name": "jessica",
          "fullName": "Jessica Fitzherbert",
          "suggestion": "Jessica Fitzherbert",
          "imageUrl": "https://typetalk.com/accounts/100/profile_image.png?t=1403577149000",
          "isBot": false,
          "createdAt": "2014-06-24T02:32:29Z",
          "updatedAt": "2014-06-24T02:32:29Z"
        },
        "createdAt": "2016-12-21T01:11:42Z"
      }
    ],
    "talks": [],
    "links": [],
    "createdAt": "2014-07-01T02:32:29Z",
    "updatedAt": "2016-12-21T10:12:02Z"
  },
  "mentions": [],
  "directMessage": null
}

All responses are text formatted as JSON, and include ETag. If you call an API with If-None-Match header, the server returns a 304 status code when the data is not changed. The date and time format is ISO 8601 and timezone is UTC (eg. 2014-01-09T06:20:08Z).