Skip to main content

POST /api/v1/comments/{id}/reply

Creates a reply to an existing comment.

Authentication​

Required. Bearer token in Authorization header.

Request​

Path Parameters​

ParameterTypeRequiredDescription
idintegerYesParent comment ID

Body Parameters​

ParameterTypeRequiredDescription
contentstringYesReply text

Example​

curl -X POST https://intotes.com/api/v1/comments/1/reply \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{
"content": "Good point, but consider the latest polls."
}'

Response​

201 Created​

Returns the ID of the created reply.

{
"id": 11
}

Errors​

StatusCodeDescription
400bad_requestMissing or invalid text field
401unauthorizedMissing or invalid authentication token
404not_foundParent comment not found
500internal_errorServer failed to create reply