POST /v1/time-accounts/ensure
POST/v1/time-accounts/ensure
CodeMeta OS API endpoint.
Data model
This operation works on the entity Time Account (time_account). All 14 fields — type, validation, required status, relationships — are listed in the schema reference.
Request body
| Name | Type | Description |
|---|---|---|
userIdrequired | string | |
accountTyperequired | string |
Example
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"
});Response codes
| HTTP | Meaning |
|---|---|
200 |
Default Response |