POST /v1/time-accounts/ensure
POST/v1/time-accounts/ensure
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 |
|---|---|---|
userIdvereist | string | |
accountTypevereist | string |
Voorbeeld
curl -X POST https://api.codemeta-os.de/v1/time-accounts/ensure \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"userId": "string",
"accountType": "FLEX"
}'const result = await cm.time-accounts.post({
"userId": "string",
"accountType": "FLEX"
});Antwoordcodes
| HTTP | Betekenis |
|---|---|
200 |
Default Response |