Contents
Delete message
Delete a message.
Method
DELETE
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 |
Response Example
{
"id": 333,
"topicId": 208,
"replyTo": null,
"message": "Let's party like it's 1999!",
"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": [],
"talks": [],
"links": [],
"createdAt": "2016-12-21T10:11:57Z",
"updatedAt": "2016-12-21T10:11:57Z"
}
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).