POST /v1/time-accounts/{accountId}/transactions POST /v1/time-accounts/{accountId}/transactions
CodeMeta OS API endpoint.
Datamodel
Deze operatie werkt op de entiteit Time Account (time_account). Alle 14 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie .
Request body
Naam Type Beschrijving datevereist stringtypevereist stringminutesvereist integersourceTypevereist stringreasonvereist stringapprovedBystring
Padparameters
Naam Type Beschrijving accountIdvereist string
Voorbeeld
curl -X POST https://api.codemeta-os.de/v1/time-accounts/{accountId}/transactions \
-H "X-Tenant-Id: $TENANT " \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"date": "string",
"type": "CREDIT",
"minutes": 0,
"sourceType": "MANUAL",
"reason": "string",
"approvedBy": "string"
}' const result = await cm.time - accounts. post ({
"date" : "string" ,
"type" : "CREDIT" ,
"minutes" : 0 ,
"sourceType" : "MANUAL" ,
"reason" : "string" ,
"approvedBy" : "string"
});
Antwoordcodes
HTTP
Betekenis
200
Default Response
Beschrijving volgt
Deze operatie heeft nog geen gecureerde annotatie. De inhoud wordt bij de volgende documentatie-update aangevuld.