API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console

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).

Modèle de données

Cette opération porte sur l'entité Task (task). Les 104 champs (type, validation, caractère obligatoire, relations) figurent dans la référence du schéma.

Corps de la requête

NomTypeDescription
maxMinutesintegernull
maxAmountstringnull
reasonobligatoirestring

Paramètres de chemin

NomTypeDescription
idobligatoirestring

Exemple

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

Codes de réponse

HTTP Signification
200 Default Response

Recherche