Error
A valid request URL is required to generate request examples{
"project_id": 123,
"configured": true,
"total_amount": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"category": {
"allocated_amount": "<string>",
"unallocated_amount": "<string>",
"allocations": [
{
"group_id": 123,
"group_name": "<string>",
"allocation_percent": "<string>",
"override_amount": "<string>",
"allocated_amount": "<string>"
}
]
},
"supplier": {
"allocated_amount": "<string>",
"unallocated_amount": "<string>",
"allocations": [
{
"group_id": 123,
"group_name": "<string>",
"allocation_percent": "<string>",
"override_amount": "<string>",
"allocated_amount": "<string>"
}
]
}
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}Project Budget
Update the project budget and its allocations
PATCH
/
projects
/
{project_id}
/
budget
Error
A valid request URL is required to generate request examples{
"project_id": 123,
"configured": true,
"total_amount": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"category": {
"allocated_amount": "<string>",
"unallocated_amount": "<string>",
"allocations": [
{
"group_id": 123,
"group_name": "<string>",
"allocation_percent": "<string>",
"override_amount": "<string>",
"allocated_amount": "<string>"
}
]
},
"supplier": {
"allocated_amount": "<string>",
"unallocated_amount": "<string>",
"allocations": [
{
"group_id": 123,
"group_name": "<string>",
"allocation_percent": "<string>",
"override_amount": "<string>",
"allocated_amount": "<string>"
}
]
}
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}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.
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.