Comment on a post
Prod Env
https://api.sqabl.com/v1
Prod Env
https://api.sqabl.com/v1
POST
/post/{id}/comment/
Request
Path Params
id
string
required
Header Params
Authorization
string
required
Example:
Bearer some-user-token
Body Params application/json
text
string
required
@{user-id}
argumentType
enum<string>
optional
Allowed values:
opposesupport
parentCommentId
string
optional
Example
{
"text": "string",
"argumentType": "oppose",
"parentCommentId": "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 'https://api.sqabl.com/v1/post//comment/' \
--header 'Authorization: Bearer some-user-token' \
--header 'Content-Type: application/json' \
--data-raw '{
"text": "string",
"argumentType": "oppose",
"parentCommentId": "string"
}'
Responses
🟢200Success
application/json
Body
object {0}
Examples
{
"success": true,
"statusCode": 200,
"data": {
"comment": {
"id": "some-new-comment-id",
"argumentType": "support",
"text": "This is my argument.",
"dateCommented": "2024-09-30 17:4:13"
},
"post": {
"id": "the-post-id",
"totalComments": 43
}
}
}