Personalcontrolling
Umsätze erfassen
List upsert: every entry creates or overwrites its month, `amount_cents: null` deletes it. Answers with the stored months of the request.
AuthentifizierungBearer <token>
Bearer-Token, erhalten über den Login-Endpunkt (POST /rest/login).
Ort: header
Request-Body
application/json
TypeScript-Definitionen
TypeScript-Typ für request body.
PUT /rest/controlling/revenues: list upsert of {year_month, amount_cents}; amount_cents: null
deletes the month. Amounts are whole, non-negative cents; every month at most once per request.
Errors are reported per list entry (revenues.3.amount_cents).
Response-Body
application/json
application/json
application/json
curl -X PUT "https://example.com/controlling/revenues" \ -H "Content-Type: application/json" \ -d '{ "revenues": [ { "year_month": "string", "amount_cents": 0 } ] }'{ "data": [ { "year_month": "string", "amount_cents": 0, "currency": "string" } ]}