---
title: "✨ Put comment"
method: PUT
path: "/api/comments/{id}/"
tags: ["Comments"]
---

# ✨ Put comment

`PUT /api/comments/{id}/`

<Card href="https://humansignal.com/goenterprise">
        <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
        <p style="margin-top: 10px; font-size: 14px;">
            This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
        </p>
    </Card>
Overwrite a specific comment by ID.

## Path parameters

- `id` integer, required

## Query parameters

- `expand_created_by` boolean

## Request body

- CommentRequest — Comment Serializer with FSM state support. Note: The 'state' field will be populated from the queryset annotation if present, preventing N+1 queries. Use .with_state() on your queryset. The state field display is controlled by both: - fflag_feat_fit_568_finite_state_management (FSM background calculations) - fflag_feat_fit_710_fsm_state_fields (state field display in APIs)
  - `annotation` integer, nullable
  - `classifications` unknown
  - `draft` integer, nullable
  - `is_resolved` boolean — True if the comment is resolved
  - `region_ref` unknown
  - `text` string, nullable — Reviewer or annotator comment

## Response `200`

- Comment — Comment Serializer with FSM state support. Note: The 'state' field will be populated from the queryset annotation if present, preventing N+1 queries. Use .with_state() on your queryset. The state field display is controlled by both: - fflag_feat_fit_568_finite_state_management (FSM background calculations) - fflag_feat_fit_710_fsm_state_fields (state field display in APIs)
  - `annotation` integer, nullable
  - `classifications` unknown
  - `created_at` string, date-time, required — Creation time
  - `created_by` integer, required — User who made this comment
  - `draft` integer, nullable
  - `id` integer, required
  - `is_resolved` boolean — True if the comment is resolved
  - `project` integer, nullable, required
  - `region_ref` unknown
  - `resolved_at` string, date-time, nullable, required — Resolving time
  - `state` string, required
  - `task` integer, nullable, required
  - `text` string, nullable — Reviewer or annotator comment
  - `updated_at` string, date-time, required — Last updated time

---

[API](https://skmtc.net/humansignal/apis/label-studio-api.md) · [All operations](https://skmtc.net/humansignal/apis/label-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humansignal/label-studio-api/versions/1b113b8df950/schema)
