Update a budget

Prev Next
Put
/api/v1/finance/budgets

Update an existing budget.

Description

Update an existing budget. This will fully overwrite the budget with the data from the request. Both the 'Reference' and the 'ExternalIdentifier' can be used to identify the budget which need to be overwritten. Preferably only the Reference is used. If this is not available, the ExternalIdentifier can be used. If both properties are used it is important that both are correct and match with the same entity (budget). If this is not the case, the request will return with an error code and the budget will not be overwritten.

Use Case

By using the GET operation the user notices that several properties have an incorrect value. By using the PUT operation all values will be overwritten simultaneously and can therefore be used to update multiple properties.

Request fields

The request contains the following fields:

FieldDescription
referenceThe unique identifier for this specific budget, created by Bloxs.
externalIdentifierThe unique identifier for this specific budget, not created by Bloxs.
ledgerAccountCodeThe code of the ledger account.
realEstateObjectReferenceThis is the reference of the realestate object associated with the budget. This refers to the reference created by Bloxs, not to be confused with the externalIdentifier.
monthIndicates the month to which the budget applies. 1 = January, 2 = February, and so on. The 'Month' field is not required for Investment Budgets and only applies to Operating Budgets.
amountThe budgeted amount


Response fields

In addition to the request, the 200 response contains the fields in the table below. 

FieldDescription
budgetTypeRefers to the budget type: 1 = Operating Budget, 2 = Investment Budget.
calendarYear

The calendar year to which the budget applies.

ownerReferenceThe reference of the relation that owns the budget. This refers to the reference created by Bloxs, not to be confused with the externalIdentifier.
lastModifiedTimestamp of the last modification within Bloxs (determined by Bloxs).
Security
HTTP
Type Bearer

Please enter a valid token

Body parameters
Expand All
object
reference
string | null
Min length0
Max length100
externalIdentifier
string | null
Min length0
Max length100
lines
Array of object (BudgetLine) Required
object
ledgerAccountCode
string Required
Min length0
Max length12
realEstateObjectReference
string | null
Min length0
Max length100
month
integer (int32) Required
Minimum0
Maximum12
amount
number (double) Required
Responses
200

The budget was updated

Expand All
object
reference
string | null
Min length0
Max length100
externalIdentifier
string | null
Min length0
Max length100
budgetType
integer (int32)
Valid values[ 1, 2 ]
calendarYear
integer (int32)
ownerReference
string
Min length0
Max length100
lastModified
string (date-time)
lines
Array of object (BudgetLine) | null
object
ledgerAccountCode
string
Min length0
Max length12
realEstateObjectReference
string | null
Min length0
Max length100
month
integer (int32)
Minimum0
Maximum12
amount
number (double)
400

The budget data has validation issues

Expand All
object
type
string | null
title
string | null
traceId
string | null
status
integer (int32)
errors
object | null
property*
Array of string | null additionalProperties
string