---
title: "Update an existing comment"
method: PUT
path: "/topics/{owner}/{topicUuid}/comments/{commentid}"
tags: ["topics and comments - resource"]
---

# Update an existing comment

`PUT /topics/{owner}/{topicUuid}/comments/{commentid}`

This API allows users to modify the content of a comment within a topic, provided they have the necessary permissions. By using a PUT request with the owner's ID, topic's UUID, and comment ID, users can update the comment's details effectively.

## Path parameters

- `owner` string, required
- `topicUuid` string, uuid, required
- `commentid` string, required

## Request body

- PublicCommentDto
  - `body` string — Body content of the comment.
  - `commentid` string — Comment id generated while creating a comment. Returned for reference but must be provided through URL only.
  - `owner` string — An organization owning a comment. Returned for reference but must be provided through URL only.
  - `topicUuid` string, uuid — Topic unique id stored along comments. Returned for reference but must be provided through URL only.

## Response `200`

default response

- PublicCommentDto
  - `body` string — Body content of the comment.
  - `commentid` string — Comment id generated while creating a comment. Returned for reference but must be provided through URL only.
  - `owner` string — An organization owning a comment. Returned for reference but must be provided through URL only.
  - `topicUuid` string, uuid — Topic unique id stored along comments. Returned for reference but must be provided through URL only.

---

[API](https://skmtc.net/data/apis/data-world-public-api.md) · [All operations](https://skmtc.net/data/apis/data-world-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/data/data-world-public-api/versions/0a0cb1f94dad/schema)
