Adds a line ("partida") to the budget: a name and a planned amount, to compare
planned vs. committed vs. spent per line. Without position it goes last. Lines are
optional and only informative: going over one declines nothing. What is left of the
total, and every record without a line, is "Sin partida" (unassigned_line).
The lines' planned amounts can't add up to more than the budget's total
(allocated_amount_cents).
Requires admin / budgets_manage, or being the budget's manager ("Encargado") or
co-manager; anyone else gets 401. Returns the budget's detail, with the lines and
their figures.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
401Unauthorized - missing or invalid authentication token, or a caller who neither
manages budgets nor is the budget's manager or co-manager.
404Budget not found (or outside the caller's scope).
412The request body is missing the required budget_line wrapper key.
