v1

latestOpenAPI 3.0.02026-07-17823107.7 KB
Comments

Create a new comment

Submit a new comment on a post

post/api/comments/create/

Request body

included_forecastboolean required

Include the user's last forecast.

is_privateboolean required

If the comment is private or public.

on_postinteger required

ID of the post.

parentinteger

ID of the comment you're replying to.

textstring required

The content of the comment.

Response

Comment created successfully

idinteger

Unique identifier for the comment.

parent_idinteger nullable

ID of the comment being replied to (if applicable).

root_idinteger nullable

ID of the root comment in the thread.

created_atstring date-time

Timestamp when the comment was created.

textstring

The content of the comment.

on_postinteger

ID of the post the comment belongs to.

included_forecastboolean

If the user's last forecast is included.

is_privateboolean

If the comment is private.

vote_scoreinteger

Total vote score for the comment.

user_voteinteger

Current user's vote on this comment (-1, 0, 1).