API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

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

NaamTypeBeschrijving
datevereiststring
typevereiststring
minutesvereistinteger
sourceTypevereiststring
reasonvereiststring
approvedBystring

Padparameters

NaamTypeBeschrijving
accountIdvereiststring

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

Zoeken