Update a budget line

Changes a line's ("partida") name, planned_amount_cents or position. Only the
fields sent are changed. Raising planned_amount_cents can't make the lines' planned
amounts add up to more than the budget's total (allocated_amount_cents). Lowering it
is always allowed, even while the lines exceed the total (after a renewal or a released
card's load, which aren't refused for it), so the excess can be worked off one line at
a time.

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

The UUID of the balance group (budget).

uuid
required

The UUID of the budget line ("partida").

Body Params

Body to create or edit a budget line ("partida"). Params are nested under a
budget_line key ({ "budget_line": { ... } }). When editing, only the fields sent are
changed. POST additionally requires budget_line.name.

budget_line
object
required
Headers
uuid
required

UUID of the company on whose behalf the request is made. Required for every Finance endpoint.
See The company-id header for details on how to obtain
a value for this header and the error responses to expect when it is missing or invalid.

Responses

401

Unauthorized - missing or invalid authentication token, or a caller who neither
manages budgets nor is the budget's manager or co-manager.

404

Budget or line not found (or outside the caller's scope).

412

The request body is missing the required budget_line wrapper key.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json