curl --request PATCH \
--url https://api.example.com/api/notes \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"content": "<string>"
}
'{
"message": "<string>",
"data": {
"id": 123,
"title": "<string>",
"data": "<string>",
"description": {},
"thumbnail": {},
"views": 123,
"visibility": "<string>",
"ownerId": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"error": "<string>"
}Update the title and content of an existing note. Only the owner or users with edit permission can update a note.
curl --request PATCH \
--url https://api.example.com/api/notes \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"content": "<string>"
}
'{
"message": "<string>",
"data": {
"id": 123,
"title": "<string>",
"data": "<string>",
"description": {},
"thumbnail": {},
"views": 123,
"visibility": "<string>",
"ownerId": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"error": "<string>"
}curl -X PATCH "https://api.noteverse.com/api/notes?id=123" \
-H "Authorization: Bearer YOUR_AUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Updated Note Title",
"content": "This is the updated content of my note."
}'
{
"message": "Note updated",
"data": {
"id": 123,
"title": "Updated Note Title",
"data": "This is the updated content of my note.",
"description": null,
"thumbnail": null,
"views": 15,
"visibility": "Private",
"createdAt": "2026-03-01T10:30:00.000Z",
"updatedAt": "2026-03-03T14:45:00.000Z",
"ownerId": 42,
"categoryId": null,
"subcategoryId": null
}
}
{
"error": "Title and content are required"
}
{
"error": "Invalid or expired token"
}
{
"error": "Error creating note"
}
title and content cannot be empty strings. If you need to clear the content, consider using a space or placeholder text instead.