---
title: "Create a comment on a row (legacy)"
method: POST
path: "/api/workspaces/{slug}/rows/{id}/comments"
tags: ["Comments"]
---

# Create a comment on a row (legacy)

`POST /api/workspaces/{slug}/rows/{id}/comments`

## Request

- Base URL: `https://trydock.ai`
- URL: `https://trydock.ai/api/workspaces/{slug}/rows/{id}/comments`
- Auth: HTTP bearer

Legacy row-only comment endpoint. New clients should use the universal endpoint above with `target: { kind: "row", rowId }`.

## Path parameters

- `slug` string, required
- `id` string, required

## Request body

- object
  - `body` string, required
  - `parentId` string
  - `mentions` string[]

## Response `200`

Created.

- object
  - `comment` object, required
    - `id` string, required
    - `body` string, required
    - `authorId` string, required
    - `authorPrincipalType` 'user' | 'agent', required
    - `parentId` string, nullable, required
    - `resolvedAt` string, date-time, nullable, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `reactions` object[]
      - `emoji` string, required
      - `count` integer, required
      - `by` string[], required: Principal ids who reacted.

---

[API](https://skmtc.dev/trydock/apis/dock-rest-api.md) - [All operations](https://skmtc.dev/trydock/apis/dock-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trydock/apis/dock-rest-api/revisions/dd96ae96a412?raw)
