Create time_account_transaction
POST/v1/time_account_transactions
Create a new time_account_transaction in the active tenant.
Datenmodell
Diese Operation arbeitet auf der Entität Time Account Transaction (time_account_transaction). Alle 31 Felder — Typ, Validierung, Pflichtangabe, Beziehungen — stehen in der Schema-Referenz.
-
Pflichtfelder:
accountId,userId,date,type,minutes -
Server-verwaltet:
_id,schema,schemaVersion,tenantId,version,createdAt,updatedAt,createdBy,updatedBy,deletedAt,deletedBy,balanceAfter,entryHash,previousHash,type,minutes,sourceType,sourceRef,date,accountId,userId,travelMinutes,supplementOf,subType,approvalStatus,approvalDecisionAt,approvalDecisionBy,approvalNote,creditedMinutes,submittedBy,submittedAt,overtimeFlags,categoryMinutes,windowFallback,revokedAt,revokedBy,revocationNote,revocationTransactionId— diese Felder vergibt die Plattform; im Request werden sie verworfen.
Beispiel
curl -X POST https://api.codemeta-os.de/v1/time_account_transactions \
-H "X-Tenant-Id: $TENANT" \
-b cookies.txtconst result = await cm.time_account_transactions.post();Antwortcodes
| HTTP | Bedeutung |
|---|---|
200 |
Default Response |