Create a Comment
Creating a comment is done via the following API endpoint.
POST: https://api.scored.co/api/v2/action/create_comment
Parameters
The following parameters are valid.
Value | Type | Required | Description |
---|---|---|---|
content | string | true | raw comment content |
parentId | boolean | true | id of the post being replied to |
commentParentId | string | true | id of the comment being replied to, or "0" |
community | string | true | the community the post is from |
g-recaptcha-response | string | false | a valid reCAPTCHA response token |
View here to see how we handle captchas.
For clarity, if your comment is intended to be a top level reply to a post, you must still provide commentParentId
, but set the value to 0.
If your comment is intended to be a reply to another comment, you must supply parentId
and commentParentId
.