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

# Add Project Task Comment

`POST /projects/{projectId}/tasks/{taskId}/comments`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/projects/{projectId}/tasks/{taskId}/comments`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-api-v2/docs/projects/:projectId/tasks/:taskId/comments/post.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

## Request body

- TaskCommentCreateForm
  - `text` string: Text comment
  - `timeSpent` integer: Specifies the time spent on the task in seconds.

## Response `201`

Task comment was successfully created

- 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 Parameters
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Project or task with specified id was not found
- `405`: Method Not Allowed
- `503`: Service Unavailable

---

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