curl --request POST \
--url https://api.example.com/api/notes/publish \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"visibility": "<string>"
}
'{
"message": "<string>",
"data": {
"id": 123,
"title": "<string>",
"data": {},
"description": {},
"thumbnail": {},
"views": 123,
"visibility": "<string>",
"ownerId": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"error": "<string>"
}Change the visibility of a note to Public, Private, or Shared
curl --request POST \
--url https://api.example.com/api/notes/publish \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"visibility": "<string>"
}
'{
"message": "<string>",
"data": {
"id": 123,
"title": "<string>",
"data": {},
"description": {},
"thumbnail": {},
"views": 123,
"visibility": "<string>",
"ownerId": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"error": "<string>"
}Public - Note is visible to all usersPrivate - Note is only visible to the ownerShared - Note is visible to users it has been explicitly shared withcurl -X POST "https://api.noteverse.com/api/notes/publish?notes_id=123" \
-H "Authorization: Bearer YOUR_AUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"visibility": "Public"
}'
{
"message": "Note visibility updated successfully",
"data": {
"id": 123,
"title": "My Public Note",
"data": "This note is now visible to everyone",
"description": null,
"thumbnail": null,
"views": 15,
"visibility": "Public",
"createdAt": "2026-03-01T10:30:00.000Z",
"updatedAt": "2026-03-03T15:00:00.000Z",
"ownerId": 42,
"categoryId": null,
"subcategoryId": null
}
}
{
"error": "visibility must be Private, Public or Shared"
}
{
"error": "Error fetching notes"
}
{
"error": "Invalid or expired token"
}
Public to make your note discoverable in the featured notes list:
{
"visibility": "Public"
}
Private to restrict access to only yourself:
{
"visibility": "Private"
}
Shared when you want to control access through the sharing system:
{
"visibility": "Shared"
}