---
title: "Update a note"
method: PATCH
path: "/notes/{noteId}"
tags: ["Notes"]
---

# Update a note

`PATCH /notes/{noteId}`

## Request

- Base URL: `https://app.cleve.ai/api/v1`
- URL: `https://app.cleve.ai/api/v1/notes/{noteId}`
- Auth: HTTP bearer

Updates a note. Every field is optional. `content` replaces the whole body; `title` alone rewrites only the title.

## Path parameters

- `noteId` string, required

## Request body

- NoteUpdate
  - `title` string: New title.
  - `content` string: New body as Markdown. Replaces the whole body.
  - `isPinned` boolean
  - `isPublic` boolean: Turn link sharing on or off.
  - `folderId` string, nullable: Move to this folder, or `null` to unfile.

## Response `200`

The note was updated.

- object
  - `data` Success, required
    - `success` true, required

## Other responses

- `400`: The request is invalid. `error` says which field is missing or wrong.
- `401`: Missing or invalid API key.
- `500`: Unexpected server error. Safe to retry once.

---

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