Create a budget line

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.

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

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