Introduction

We are listing the available API endpoints for habitate.io. These can be used to build additional feature and create linked services around your community.

In case you need more help you can get in touch with the team, developer-support at habitate.io

Edit a comments

Endpoint

PUT /api/v1/comments/{comment_id}

Url path variables

Possible values Comments
comment_id The comment_id to be edited.

Body parameters

Name Type Req? Comments
content boolean Y  


Response parameters

{
  "post_id": 157,
  "comment_id": 34,
  "content": "Excepturi aut optio impedit fugiat sed est. Impedit accusamus earum ut et voluptatem. Dolore autem neque et eaque facilis aspernatur maxime et autem. In magnam voluptas dolor est aliquam fugit maiores. Voluptatum sed cum quia dolore. Consequatur doloremque accusantium consequatur. Chair",
  "clean_text": "Excepturi aut optio impedit fugiat sed est. Impedit accusamus earum ut et voluptatem. Dolore autem neque et eaque facilis aspernatur maxime et autem. In magnam voluptas dolor est aliquam fugit maiores. Voluptatum sed cum quia dolore. Consequatur doloremque accusantium consequatur. Chair",
  "react_count": 2,
  "reply_count": 0,
  "reactions": {
    "s4": 0,
    "s5": 1
  },
  "comment_status": 15,
  "state": 0,
  "last_edited_at": "2022-05-07T12:23:17.481925Z",
  "created_at": "2022-05-07T12:21:59Z",
  "last_modified_at": "2022-05-07T12:23:04Z",
  "user": {
    "user_id": 146,
    "user_avatar": "https://images.unsplash.com/photo-1558244661-d248897f7bc4",
    "username": "Alexandra",
    "msid": "146.VijCxex1IKckmzUDzYXlQycufs3"
  }
}