POST /v1/time-accounts/ensure
POST/v1/time-accounts/ensure
CodeMeta OS API endpoint.
Datenmodell
Diese Operation arbeitet auf der Entität Time Account (time_account). Alle 14 Felder — Typ, Validierung, Pflichtangabe, Beziehungen — stehen in der Schema-Referenz.
Request Body
| Name | Typ | Beschreibung |
|---|---|---|
userIderforderlich | string | |
accountTypeerforderlich | string |
Beispiel
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"
});Antwortcodes
| HTTP | Bedeutung |
|---|---|
200 |
Default Response |