Update Note
Update an existing note by providing its ID and the fields you want to modify. All fields except ID are optional.Path Parameters
The unique identifier of the note to update
Request Body
The ID of the note (must match the path parameter)
The new title of the note
The new content/body of the note
New category classification. Valid values:
css, val-town, prompts, notes, chat-gpt, cursor-chats, bash-commandsNew group classification. Valid values:
first, second, third, fourth, fifthNew visual color coding. Valid values:
primary, secondary, accent, neutral, info, success, warning, errorExamples
Request Example
Response
Important Notes
- The
idfield in the request body must match theidin the URL path - Only provided fields will be updated; other fields remain unchanged
- The
updatedAttimestamp will be automatically updated - The
archivedstatus cannot be changed through this endpoint (use archive/unarchive endpoints)
Validation Rules
- id: Must be a valid integer and match an existing note
- title: If provided, must be a non-empty string
- content: If provided, must be a non-empty string
- category: If provided, must be one of the valid category values
- group: If provided, must be one of the valid group values
- color: If provided, must be one of the valid color values