v1

latestOpenAPI 3.0.0Apache 2.02026-07-179012215.4 KB
comments

Add Topic Comment

Add an Comment to the topic

post/api/users/:userId/topics/:topicId/comments

Path parameters

userIdstring required

logged in users id

topicIdstring required

Topic id to add Comment

Request body

type'pro' | 'con' | 'reply'
parentIdstring

parent comment id if comment is a reply

parentVersioninteger

if comment is reply then parent version can show exact version that was replied in case parent comment is edited

subjectstring

comments subject

textstring

comments content

Response

New Comment added successfully

Example response

{
  "status": {
    "code": 20000
  }
}