PUT /v1/daily-notes
PUT/v1/daily-notes
Upsert the calling user’s daily note for a date. Idempotent — repeated calls update the same record (unique per userId+date).
Data model
This operation works on the entity Daily Note (daily_note). All 4 fields — type, validation, required status, relationships — are listed in the schema reference.
-
Required fields:
userId,date,content -
Server-managed:
_id,schema,schemaVersion,tenantId,version,createdAt,updatedAt,createdBy,updatedBy,deletedAt,deletedBy— the platform assigns these fields; they are discarded in the request.
Request body
| Name | Type | Description |
|---|---|---|
daterequired | string<date> | |
contentrequired | string | |
pinned | boolean |
Example
curl -X PUT https://api.codemeta-os.de/v1/daily-notes \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"date": "string",
"content": "string",
"pinned": false
}'const result = await cm.daily-notes.put({
"date": "string",
"content": "string",
"pinned": false
});Response codes
| HTTP | Meaning |
|---|---|
200 |
Default Response |