まとめにメッセージを追加
メソッド
POST
URL
https://typetalk.com/api/v1/topics/:topicId/talks/:talkId/posts
スコープ
topic.post
URLパラメーター
名前 |
型 |
説明 |
topicId |
数値 |
トピックID |
talkId |
数値 |
まとめ ID |
フォームパラメーター
名前 |
型 |
説明 |
postIds[0], postIds[1] …. |
数値 |
まとめに入れたい投稿ID |
レスポンスの例
{
"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"
},
"talk": {
"id": 900,
"topicId": 208,
"name": "About us",
"suggestion": "About us",
"createdAt": "2014-07-02T03:42:29Z",
"updatedAt": "2016-12-21T10:12:24Z",
"backlog": null
},
"postIds": [
300,
301
]
}
レスポンスのフォーマットは全てJSONです。GETメソッドはETagに対応しているので、If-None-Match ヘッダを付けて送ると、変更がない場合は304を返します。日付のフォーマットは ISO 8601 で、UTC です。 (例 : 2014-01-09T06:20:08Z )