Stampfactory
Dokumentation
Personalcontrolling

Budget ändern

PUT
/controlling/budgets/{budget}
AuthentifizierungBearer <token>

Bearer-Token, erhalten über den Login-Endpunkt (POST /rest/login).

Ort: header

Pfadparameter

budget*string

The budget ID

Formatuuid

Request-Body

application/json

TypeScript-Definitionen

TypeScript-Typ für request body.

POST /rest/controlling/budgets and PUT /rest/controlling/budgets/{budget}: scope company or department (with department_id), effective_from (YYYY-MM) and the monthly amount in whole, non-negative cents. Only one budget per scope and effective_from; the database unique backs this check against concurrent requests.

Response-Body

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/controlling/budgets/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "scope": "company",    "effective_from": "string",    "amount_cents": 0  }'
{  "data": {    "id": "string",    "scope": "string",    "department_id": "string",    "department_name": "string",    "effective_from": "string",    "amount_cents": 0,    "currency": "string"  }}