API · v1 · stabil
CODEMETA OSDeveloper Center
DE
Konsole öffnen

POST /v1/tasks/{id}/budget-override

POST/v1/tasks/{id}/budget-override

Raise (or lower) the budget cap on an order-linked task. Requires task_override_budget. Records reason + override timestamps so the reconcile job leaves the value alone (ADR 0139).

Datenmodell

Diese Operation arbeitet auf der Entität Task (task). Alle 104 Felder — Typ, Validierung, Pflichtangabe, Beziehungen — stehen in der Schema-Referenz.

Request Body

NameTypBeschreibung
maxMinutesintegernull
maxAmountstringnull
reasonerforderlichstring

Pfad-Parameter

NameTypBeschreibung
iderforderlichstring

Beispiel

curl -X POST https://api.codemeta-os.de/v1/tasks/{id}/budget-override \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "maxMinutes": null,
  "maxAmount": null,
  "reason": "string"
}'
const result = await cm.tasks.post({
  "maxMinutes": null,
  "maxAmount": null,
  "reason": "string"
});

Antwortcodes

HTTP Bedeutung
200 Default Response

Suche