---
title: "Creates a comment"
method: POST
path: "/api/v1/comments"
tags: ["Comments"]
---

# Creates a comment

`POST /api/v1/comments`

## Request body

- CreateComment
  - `token` string, required
  - `item` object
    - `comment` string, required — The text content of the comment
    - `commentable_id` integer, required — The ID of the item to which the comment is being added
    - `commentable_type` string, required — Specifies the class name of the item to which the comment is attached, such as Biocollections::Plasmid

## Response `201`

comment created

## Other responses

- `401` — Error: Unauthorized
- `422` — invalid request - Name can't be blank

---

[API](https://skmtc.net/labguru/apis/labguru-api.md) · [All operations](https://skmtc.net/labguru/apis/labguru-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/labguru/labguru-api/revisions/0534e4d70b77/schema)
