Skip to content
REST API

Write note content as Markdown

PUT
/notes/{noteId}/content

Converts markdown (up to 100000 characters) to the editor format and replaces the note's content with it. To add blocks after the existing ones, use POST /notes/{noteId}/content/append. A replace keeps the inline images that are still in the Markdown, written as ![alt](src) the way GET /notes/{noteId} returns them, and deletes the ones it leaves out. An image whose upload the web editor hasn't confirmed yet can still be deleted 24 hours after the upload. Send baseVersion to write only if nobody saved since you read the note.

Required scopes: notes:update

Authorization

AuthorizationBearer <token>

In: header

Path Parameters

noteId*string

Note id, scoped to the key's user.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/notes/497f6eca-6276-4993-bfeb-53cbbbba6f08/content" \  -H "Content-Type: application/json" \  -d '{    "markdown": "string"  }'
{  "data": {    "id": "3c2b1a09-8f7e-4d6c-9b5a-4f3e2d1c0b9a",    "name": "Photosynthesis",    "folder": {      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",      "name": "Biology",      "subjectId": null    },    "subjectId": null,    "createdAt": "2026-01-15T09:30:00.000Z",    "updatedAt": "2026-02-01T12:00:00.000Z",    "fullWidth": false,    "contentFormat": "tiptap",    "contentUnstable": true,    "content": {      "type": "doc",      "content": [        {          "type": "paragraph",          "attrs": {            "id": "6d5c4b3a-2f1e-4d0c-9b8a-7f6e5d4c3b2a"          },          "content": [            {              "type": "text",              "text": "Light becomes chemical energy."            }          ]        }      ]    },    "markdown": "Light becomes chemical energy.",    "markdownLosses": [],    "version": 3,    "pinned": false,    "summary": {      "summary": "How plants turn light into sugar.",      "keywords": [        "chlorophyll",        "glucose",        "light reactions"      ],      "createdAt": "2026-02-01T12:00:00.000Z"    }  }}