Get budget history
/v2/budget_histories/{budget_history_id}Returns the budget history with the given ID.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
budget_history_idrequired | path | integer (int32) | Budget History ID |
Responses
200A budget history
- budget_historyobjectobject
BudgetHistory model
- idinteger required
the budget history ID
- project_idinteger
The project ID the budget is for
- client_idinteger
The client ID the budget is for
- budgetobject requiredobject
- typestring required
The budget type
- ratestring
The budget rate type
- costnumber
The budget cost limit
- hoursnumber
The budget hours limit
- start_datestring
The budget start date
- alertsobject requiredobject
- near_limitinteger required
The budget near limit percentage
- notify_enabledboolean required
Whether budget notifications are enabled
- notify_all_membersboolean required
Whether to notify all project members
- notify_groupstring
The group to notify
- recurrencestring
The budget recurrence frequency
- recurrence_startinteger
Day of week (0-6, 0=Sunday) for weekly recurrence, or day of month (1-31) for monthly recurrence
- include_non_billableboolean required
Whether the budget includes non-billable time
- stop_timer_when_budget_reachedboolean required
Whether to stop timers when budget is reached
- stop_atinteger
The budget percentage at which timers stop
- start_datestring
The start date of the budget
- stop_datestring
The stop date of the budget
- spentnumber required
The amount spent. Either cost or hours depending on the budget type
- created_atstring required
When the record was created
- updated_atstring required
When the record was last updated
{
"budget_history": {
"id": 0,
"project_id": 0,
"client_id": 0,
"budget": {
"type": "string",
"rate": "string",
"cost": 0,
"hours": 0,
"start_date": "2024-01-15",
"alerts": {
"near_limit": 0,
"notify_enabled": false,
"notify_all_members": false,
"notify_group": "string"
},
"recurrence": "string",
"recurrence_start": 0,
"include_non_billable": false,
"stop_timer_when_budget_reached": false,
"stop_at": 0
},
"start_date": "2024-01-15",
"stop_date": "2024-01-15",
"spent": 0,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}400Invalid parameters
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}401Unauthorized
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}403API access is only for organizations on an active plan
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}404Could not find record
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}429Rate limit exceeded
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}