Change Note properties
PATCH
/api/v1/notes/{id}/properties
const url = 'https://example.com/api/v1/notes/example/properties';const options = { method: 'PATCH', headers: { 'If-Match': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"properties":{"additionalProperty":"example"},"tags":["example"],"title":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/notes/example/properties \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'If-Match: example' \ --data '{ "properties": { "additionalProperty": "example" }, "tags": [ "example" ], "title": "example" }'Route: /api/v1/notes/{id}/properties. Inputs: id, If-Match. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”If-Match
required
string
Current Note ETag
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Edit Note frontmatter without Task fields or identity changes (#833, DESIGN §9). Null removes a User property. Title changes use the retitle route.
object
properties
Set User properties; null removes a property. Reserved keys are rejected.
object
key
additional properties
string | null
tags
Replace the Note Tags. Omit this field to keep them.
Array<string> | null
title
Retained for compatibility; use retitle to change a Note title.
string | null
Examplegenerated
{ "properties": { "additionalProperty": "example" }, "tags": [ "example" ], "title": "example"}Responses
Section titled “Responses”Media typeapplication/json
object
body
required
string
canvas
Validated render data for Canvas; an invalid imported file has no scene.
etag
required
string
id
required
string
path
required
string
properties
required
title
required
string
Examplegenerated
{ "body": "example", "canvas": "example", "etag": "example", "id": "example", "path": "example", "properties": "example", "title": "example"}Invalid property or title change; use retitle for titles
Note changed; read its current ETag before editing
If-Match is required