# Update a Task Comment

`PUT /api/tasks/{task_id}/comments/{comment_id}`

Updates the text of an existing task comment. Requires the Tasks "put" permission.

- **Group:** Tasks
- **Since:** v3.0.3
- **Authentication:** `authtoken` header, created under Setup > API > API Management
- **HTML version:** /apiguide/tasks/put-task-comment/

## Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `authtoken` | String | **required** | Authentication token, generated from admin area |

## Parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `task_id` | Number | **required** | Task unique ID (URL segment). |
| `comment_id` | Number | **required** | Comment unique ID (URL segment). |
| `content` | String | **required** | Mandatory new comment text. |

## Example request

```bash
curl -X PUT "https://yoursite.com/api/tasks/123/comments/123" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "content": "..." }'
```

## Success response

### Success-Response:

```json
HTTP/1.1 200 OK
{ "status": true, "message": "Comment updated successfully" }
```

---

Perfex CRM REST API by Themesic Interactive. Full reference: /apiguide/
