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).
Datenmodell
Diese Operation arbeitet auf der Entität Daily Note (daily_note). Alle 4 Felder — Typ, Validierung, Pflichtangabe, Beziehungen — stehen in der Schema-Referenz.
- Pflichtfelder:
userId,date,content - Server-verwaltet:
_id,schema,schemaVersion,tenantId,version,createdAt,updatedAt,createdBy,updatedBy,deletedAt,deletedBy— diese Felder vergibt die Plattform; im Request werden sie verworfen.
Request Body
| Name | Typ | Beschreibung |
|---|---|---|
dateerforderlich | string<date> | |
contenterforderlich | string | |
pinned | boolean |
Beispiel
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
});Antwortcodes
| HTTP | Bedeutung |
|---|---|
200 |
Default Response |