API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console

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

Modèle de données

Cette opération porte sur l'entité Daily Note (daily_note). Les 4 champs (type, validation, caractère obligatoire, relations) figurent dans la référence du schéma.

  • Champs obligatoires : userId, date, content
  • Gérés par le serveur : _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy. La plateforme attribue ces champs ; ils sont ignorés dans la requête.

Corps de la requête

NomTypeDescription
dateobligatoirestring<date>
contentobligatoirestring
pinnedboolean

Exemple

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

Codes de réponse

HTTP Signification
200 Default Response

Recherche