---
title: "Create Sub Comment"
method: POST
path: "/api/v1/comments/{owner}/{repo}/{parent_comment_id}"
tags: ["comments"]
---

# Create Sub Comment

`POST /api/v1/comments/{owner}/{repo}/{parent_comment_id}`

## Path parameters

- `owner` string, required
- `repo` string, required
- `parent_comment_id` string, uuid, required

## Request body

- CreateCommentRequest
  - `content` string, required

## Response `200`

Successful Response

- Comment
  - `id` string, uuid, required
  - `comment_by` string, uuid, nullable
  - `comment_on` string, uuid, required
  - `parent_id` string, uuid, nullable
  - `content` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `comment_by_name` string, nullable
  - `num_sub_comments` integer, required
  - `num_likes` integer, required
  - `liked_by_auth_user` boolean, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/a0acb3a6a101?raw)
