API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

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).

Datamodel

Deze operatie werkt op de entiteit Daily Note (daily_note). Alle 4 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.

  • Verplichte velden: userId, date, content
  • Door de server beheerd: _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy — deze velden worden door het platform toegekend; in de request worden ze genegeerd.

Request body

NaamTypeBeschrijving
datevereiststring<date>
contentvereiststring
pinnedboolean

Voorbeeld

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
});

Antwoordcodes

HTTP Betekenis
200 Default Response

Zoeken