Skip to content

Update comment

Onur Akpolat edited this page Nov 4, 2016 · 1 revision

Endpoint

PUT https://api.tapglue.com/0.4/posts/:PostID/comments/:CommentID

Params

Attribute Type
contents object
private object

Example

curl https://api.tapglue.com/0.4/posts/:PostID/comments/:CommentId \
    -X PUT \
    -u [[app:key]]:SESSION_TOKEN \
    -H 'Accept: application/json' \
    -H "User-Agent: Tapglue Test UA" \
    -H "Content-Type: application/json" \
    -d '{"contents": {"en-GB": "Great post, I really like it."}}"

Response

{
  "contents": {
    "en-GB": "Great post, I really like it."
  },
  "id": "14496455624495623",
  "post_id": "14452165116431589",
  "user_id": "13336886126842393",
  "created_at": "2015-12-09T18:16:20.884793465Z",
  "updated_at": "2015-12-09T18:16:20.884793594Z"
}
Clone this wiki locally