---
title: "Edit Project Task Comment"
method: PATCH
path: "/projects/{projectId}/tasks/{taskId}/comments/{commentId}"
tags: ["Tasks"]
---

# Edit Project Task Comment

`PATCH /projects/{projectId}/tasks/{taskId}/comments/{commentId}`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/projects/{projectId}/tasks/{taskId}/comments/{commentId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/docs/projects/:projectId/tasks/:taskId/comments/:commentId/patch.ts> (a function with typed inputs; its response is checked against the schema)

**Required scopes:** `project.task` (Read and Write).

## Path parameters

- `projectId` integer, required
- `taskId` integer, required
- `commentId` integer, required

## Request body

- TaskCommentOperation[]: A JSON Patch document as defined by RFC 6902
  - `op` 'replace', required: Patch operation to perform
  - `path` '/text' | '/timeSpent', required: A JSON Pointer path
  - `value` union, required: The value to replace with
    - string: For /text path
    - integer: For /timeSpent path

## Response `200`

Task Comment was successfully updated

- TaskCommentResource: Base schema of resource container. Container is a wrapper object that contains payload in required `data` property and provides space for adding any other metadata.
  - `data` TaskComment, required: Task Comment Response Model
    - `id` integer
    - `userId` integer
    - `taskId` integer
    - `text` string
    - `timeSpent` integer, nullable
    - `createdAt` string, date-time: in UTC
    - `updatedAt` string, date-time: in UTC

## Other responses

- `400`: Invalid Request Body
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Project or task or comment with specified id was not found

---

[API](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2.md) - [All operations](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/revisions/dc68744c5384?raw)
