API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

POST /v1/time-accounts/{accountId}/transactions

POST/v1/time-accounts/{accountId}/transactions

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

NameTypeDescription
daterequiredstring
typerequiredstring
minutesrequiredinteger
sourceTyperequiredstring
reasonrequiredstring
approvedBystring

Path parameters

NameTypeDescription
accountIdrequiredstring

Example

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"
});

Response codes

HTTP Meaning
200 Default Response

Search