- Introduction
- Changelog Release
- Local Development
- UserActivity Api
- Comment Api
- CommentV2 Api
- Post Api
CommentPost
POST
/comment/v2/submit
CommentV2 Api
Request
Header Params
Authorization
string
required
Body Params application/json
parentCommentId
string
optional
postId
string
required
repliedTo
object (dto.AuthorRequest)
required
fullName
string
optional
userId
string
optional
repliedToCommentId
string
optional
replyText
string
required
Example
{
"parentCommentId": "string",
"postId": "string",
"repliedTo": {
"fullName": "string",
"userId": "string"
},
"repliedToCommentId": "string",
"replyText": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/comment/v2/submit' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"parentCommentId": "string",
"postId": "string",
"repliedTo": {
"fullName": "string",
"userId": "string"
},
"repliedToCommentId": "string",
"replyText": "string"
}'
Responses
🟢200response
application/json
Body
code
string
optional
data
object
optional
message
object
optional
Example
{
"code": "string",
"data": {},
"message": {}
}
Modified at 2023-01-25 05:57:12