---
title: "Edit a note you wrote with an expected version"
method: PUT
path: "/v1/workspace/notes/{note_id}"
---

# Edit a note you wrote with an expected version

`PUT /v1/workspace/notes/{note_id}`

## Request

- Base URL: `https://api.specstream.ai`
- URL: `https://api.specstream.ai/v1/workspace/notes/{note_id}`
- Auth: API key in header `Authorization`

## Path parameters

- `note_id` string, required

## Request body

- WorkspaceNoteEdit
  - `project_id` string, nullable
  - `collection_id` string, nullable
  - `record_id` string, nullable
  - `expected_version` integer, required
  - `text` string, required

## Response `200`

Edit a note you wrote with an expected version

- object
  - `data` WorkspaceNotes, required
    - `version` integer, required
    - `notes` WorkspaceNote[], required
      - `id` string, required
      - `text` string, required
      - `author` string, required
      - `authorId` string, required
      - `at` string, required
      - `createdAt` string, required
      - `resolved` boolean, required
      - `projectId` string, nullable
      - `resolvedBy` string, nullable
      - `resolvedAt` string, nullable

## Other responses

- `default`: Error envelope

---

[API](https://skmtc.dev/specstream/apis/specstream-api.md) · [All operations](https://skmtc.dev/specstream/apis/specstream-api/llms.txt) · [OpenAPI document](https://skmtc.dev/specstream/apis/specstream-api/revisions/5a9f51143a13?raw)
