---
title: "Create comment"
method: POST
path: "/forms/{formId}/comments"
tags: ["Comments"]
---

# Create comment

`POST /forms/{formId}/comments`

Adds a new comment to a form element or as a reply. Requires COMMENT permission.

## Request body

- CommentCreate
  - `element` string, required
  - `body` string, required
  - `parent` string, ulid, nullable

## Response `201`

Comment created successfully.

- Comment
  - `id` string, ulid, required
  - `form` string, ulid, required
  - `user` string, ulid, required
  - `body` string, required
  - `state` 'hidden' | 'visible'
  - `element` string, required
  - `parent` string, ulid, nullable
  - `modified` string, date-time, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Unprocessable Entity

## Changes

- **2025-07-14** `de597e8f26bc` — 1 info
  - added the optional property `state` to the response with the `201` status
- **2025-07-13** `0d7f3c750979` — 1 warning
  - removed the optional property `state` from the response with the `201` status

[Change history](https://skmtc.dev/osdg-iiith/apis/forms-portal-api/changes/forms/:formId/comments/post.md)

---

[API](https://skmtc.dev/osdg-iiith/apis/forms-portal-api.md) · [All operations](https://skmtc.dev/osdg-iiith/apis/forms-portal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/osdg-iiith/forms-portal-api/revisions/85c657c8ce11/schema)
