Creates a new reply to a specified comment. Requires authenticated user.

POST /api/v1/comments/{commentId}/replies

Path parameters

  • commentId string Required

    The unique identifier of the comment being replied to.

application/json

Body

The content of the reply.

Responses

POST /api/v1/comments/{commentId}/replies
curl \
 --request POST 'https://crowdparlay.com/api/v1/comments/{commentId}/replies' \
 --header "Content-Type: application/json" \
 --data '{"content":"string"}'
Request examples
{
  "content": "string"
}
Response examples (201)
{
  "id": "string",
  "subject_id": "string",
  "content": "string",
  "author": {
    "id": "string",
    "username": "string",
    "display_name": "string",
    "avatar_url": "string"
  },
  "created_at": "2025-05-04T09:42:00Z",
  "comment_count": 42,
  "last_comments_authors": [
    {
      "id": "string",
      "username": "string",
      "display_name": "string",
      "avatar_url": "string"
    }
  ],
  "reaction_counters": {
    "additionalProperty1": 42,
    "additionalProperty2": 42
  },
  "viewer_reactions": [
    "string"
  ]
}
Response examples (400)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string",
  "errors": {
    "additionalProperty1": [
      "string"
    ],
    "additionalProperty2": [
      "string"
    ]
  }
}
Response examples (403)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}
Response examples (404)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}
Response examples (500)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}