---
title: "Update a project note"
method: PUT
path: "/projects/{project_id}/notes/{id}"
tags: ["Project Notes"]
---

# Update a project note

`PUT /projects/{project_id}/notes/{id}`

## Request

- Base URL: `https://app2.gettruss.io/api/v1`
- URL: `https://app2.gettruss.io/api/v1/projects/{project_id}/notes/{id}`
- Auth: HTTP bearer

Changes the note's body, its task link, or both, and records the current user as last_edited_by. Anyone on the firm can edit any note; every change is recorded in its history.

## Request body

- object
  - `comment_content` string: Rich-text body. HTML is accepted and sanitized.
  - `task_id` integer, nullable: A task on this project to link the note to; null or empty unlinks it

## Response `200`

the updated note

- object
  - `data` ProjectNote
    - `id` integer
    - `project_id` integer
    - `task_id` integer, nullable: The task this note is linked to, if any
    - `created_by_id` integer, nullable: ID of the user who wrote the note
    - `last_edited_by_id` integer: ID of the user who last edited the note
    - `deleted_task_name` string, nullable: Name of the task this note was linked to, after that task was deleted
    - `comment_content` string: Rich-text body rendered as sanitized HTML
    - `comment_content_as_string` string: Plain-text version of the body, suitable for non-HTML clients
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `404`: note not found
- `422`: validation failed

## Changes

- **2026-10-09** `c135035d6fa0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gettruss/apis/api-v1/changes/projects/:project_id/notes/:id/put.md)

---

[API](https://skmtc.dev/gettruss/apis/api-v1.md) - [All operations](https://skmtc.dev/gettruss/apis/api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/gettruss/apis/api-v1/revisions/3c722bf0ce3d?raw)
