Note Object Schema
The note object is the core data structure used throughout the Summer Notes API. This page details all fields, their types, constraints, and valid values.Complete Schema
Field Definitions
id
- Type:
integer - Description: Unique identifier for the note
- Constraints: Auto-generated, read-only
- Example:
23
title
- Type:
string - Description: The title/heading of the note
- Constraints: Required, non-empty
- Example:
"Advanced CSS Techniques"
content
- Type:
string - Description: The main content/body of the note
- Constraints: Required, non-empty
- Example:
"Modern CSS techniques including Grid, Flexbox, and custom properties..."
category
- Type:
string - Description: Category classification for organizing notes
- Constraints: Required, must be one of valid values
- Valid Values:
cssval-townpromptsnoteschat-gptcursor-chatsbash-commands
- Example:
"css"
group
- Type:
string - Description: Group classification for further organization
- Constraints: Required, must be one of valid values
- Valid Values:
firstsecondthirdfourthfifth
- Example:
"first"
color
- Type:
string - Description: Visual color coding for the note
- Constraints: Required, must be one of valid values
- Valid Values:
primarysecondaryaccentneutralinfosuccesswarningerror
- Example:
"primary"
archived
- Type:
boolean - Description: Whether the note is archived or active
- Constraints: System-managed, defaults to
false - Values:
trueorfalse - Example:
false
createdAt
- Type:
datetime - Description: Timestamp when the note was created
- Constraints: Auto-generated, read-only, ISO 8601 format
- Example:
"2024-01-25T14:30:00Z"
updatedAt
- Type:
datetime - Description: Timestamp when the note was last modified
- Constraints: Auto-updated, read-only, ISO 8601 format
- Example:
"2024-01-25T16:45:00Z"
Example Note Objects
New Note
Updated Note
Archived Note
Validation Summary
When creating or updating notes, ensure:- Required fields are provided:
title,content,category,group,color - Valid enums are used for
category,group, andcolor - Non-empty strings for
titleandcontent - Read-only fields (
id,createdAt,updatedAt) are not manually set - Archive status is managed through dedicated endpoints