---
title: "Create a new comment for a chart"
method: POST
path: "/charts/{id}/comments"
---

# Create a new comment for a chart

`POST /charts/{id}/comments`

Requires scope `chart:write`.

## Path parameters

- `id` string, required

## Request body

- object
  - `body` string, required
  - `json` object
    - `type` string, required
    - `attrs` object
      - `id` string
    - `marks` object[]
      - `type` string, required
      - `attrs` object
        - `id` string
    - `text` string
    - `content` string[]
  - `parentId` integer

## Response `default`

Successful

---

[API](https://skmtc.dev/datawrapper/apis/datawrapper-api-v3-documentation.md) · [All operations](https://skmtc.dev/datawrapper/apis/datawrapper-api-v3-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datawrapper/datawrapper-api-v3-documentation/revisions/e190512863c7/schema)
