---
title: "Edit a Comment"
method: POST
path: "/commentmanager.edit/{typedId}"
tags: ["Comments"]
---

# Edit a Comment

`POST /commentmanager.edit/{typedId}`

Edits the comment specified as the path param. Replaces the comment with the text provided in the request body.<br>
With each edit, the version number is incremented by 1. The comment metadata includes timestamps for creation and last update, along with the author of each change. If a reply is added to a resolved thread, the thread automatically changes to an unresolved state.

## Request body

- object
  - `data` object
    - `body` string — Specify the new text content of the comm

## Response `200`

OK

- object
  - `response` object
    - `node` string
    - `data` CommentThread[]
      - `typedId` string
      - `comments` Comment[]
        - `typedId` string
        - `createdBy` integer
        - `lastUpdateDate` string, date-time
        - `body` string
        - `version` integer
        - `createDate` string, date-time
        - `lastUpdateBy` integer
      - `createdBy` integer
      - `lastUpdateDate` string, date-time
      - `version` integer
      - `relatedObjects` string[] — A transient list of strings representing the identifiers of related objects. This attribute is derived from the relations attribute.
      - `resolved` boolean
      - `createDate` string, date-time
      - `lastUpdateBy` integer
    - `status` integer

---

[API](https://skmtc.net/pricefx/apis/the-pricefx-backend-api.md) · [All operations](https://skmtc.net/pricefx/apis/the-pricefx-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pricefx/the-pricefx-backend-api/versions/0850b5d6be73/schema)
