Skip to main content
PATCH
Error

Authorizations

authorization
string
header
required
X-Workspace-ID
string
header
required

Headers

X-Workspace-ID
string
required

Path Parameters

project_id
integer
required

Body

application/json

Every key is optional. The budget is created on the first save. Allocations are upserted by (analysis_type, group_id); an entry patches only the fields it sends (null clears one), and an allocation left with neither value is deleted. Allocations may add up to more than the total.

total_amount
string

0 ≤ amount < 1e16.

allocations
object[]
Maximum array length: 1000

Response

OK

The project's planned cost budget, compared with the cost side of Budget Analysis. One total, split by category and by supplier — the two splits are independent, each covering the same total.

project_id
integer
required
configured
boolean
required

False until the budget is first saved (the total then reads 0.00 with no allocations).

total_amount
string
required

The project budget (cost), 2 decimals.

updated_at
string<date-time> | null
required
category
object
required

One analysis type's split of the project budget.

supplier
object
required

One analysis type's split of the project budget.