Create Note
Create a new note by providing the required fields. All fields are mandatory for creating a note.Request Body
The title of the note
The main content/body of the note
Category classification. Valid values:
css, val-town, prompts, notes, chat-gpt, cursor-chats, bash-commandsGroup classification. Valid values:
first, second, third, fourth, fifthVisual color coding. Valid values:
primary, secondary, accent, neutral, info, success, warning, errorExamples
Request Example
Response
Validation Rules
- title: Must be a non-empty string
- content: Must be a non-empty string
- category: Must be one of the valid category values
- group: Must be one of the valid group values
- color: Must be one of the valid color values
Response Fields
The response includes all the provided fields plus:- id: Auto-generated unique identifier
- archived: Defaults to
falsefor new notes - createdAt: Timestamp when the note was created
- updatedAt: Timestamp when the note was last updated (same as createdAt for new notes)