Update budget line

PATCH /api/v1/budgets/{budget_id}/lines/{line_id}

Update amounts on a budget line.

Operation ID: update_budget_line_api_v1_budgets__budget_id__lines__line_id__patch · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

budget_id string required
line_id string required

Request body

jan_amount integer

January budget amount in cents.

feb_amount integer

February budget amount in cents.

mar_amount integer

March budget amount in cents.

apr_amount integer

April budget amount in cents.

may_amount integer

May budget amount in cents.

jun_amount integer

June budget amount in cents.

jul_amount integer

July budget amount in cents.

aug_amount integer

August budget amount in cents.

sep_amount integer

September budget amount in cents.

oct_amount integer

October budget amount in cents.

nov_amount integer

November budget amount in cents.

dec_amount integer

December budget amount in cents.

notes string

Optional notes for this line.

Responses

200 Successful Response

id string required

Budget line UUID.

budget_id string required

Parent budget UUID.

ledger_id string required

Ledger account UUID.

ledger_name string

Ledger account name.

ledger_type string

Ledger account type (revenue, expense, etc.).

jan_amount integer required

January budget amount in cents.

feb_amount integer required

February budget amount in cents.

mar_amount integer required

March budget amount in cents.

apr_amount integer required

April budget amount in cents.

may_amount integer required

May budget amount in cents.

jun_amount integer required

June budget amount in cents.

jul_amount integer required

July budget amount in cents.

aug_amount integer required

August budget amount in cents.

sep_amount integer required

September budget amount in cents.

oct_amount integer required

October budget amount in cents.

nov_amount integer required

November budget amount in cents.

dec_amount integer required

December budget amount in cents.

annual_amount integer required

Total annual budget amount in cents.

quarterly_amounts object required

Amounts by quarter (q1, q2, q3, q4).

notes string

Line notes.

business_id string required

Business UUID.

created_at string · date-time required

Creation timestamp.

updated_at string · date-time required

Last update timestamp.

400 Bad Request - Invalid input

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object