List organization projects
/v2/organizations/{organization_id}/projectsReturns a collection of projects for the given organization.
Results can be filtered by status (active/archived/all) and project_ids[].
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organization_idrequired | path | integer (int32) | |
page_start_id | query | integer (int32) | The page start ID. |
page_limit | query | integer (int32) | The default page size |
status | query | string | Project status Possible values activearchivedall |
include | query | array string[] | Specify related data to side load. Possible values clients |
project_ids | query | array integer[] | List of project IDs |
Responses
200A list of projects
- projectsarrayarray<object>itemsobject
Project model
- idinteger required
Project ID
- namestring required
Project name
- descriptionstring
Project description
- created_atstring required
When the record was created
- updated_atstring required
When the record was last updated
- statusstring required
Project status
- typestring required
Project type (project, work_order, work_break)
- client_idinteger
Client ID
- billableboolean required
Default state of billable attribute for new activity
- budgetobjectobject
- 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
- metadataobject required
Metadata attached to the project
objectMetadata attached to the project
- pay_ratenumber
Default pay rate for the project
- bill_ratenumber
Default bill rate for the project
{
"projects": [
{
"id": 0,
"name": "string",
"description": "string",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"status": "string",
"type": "string",
"client_id": 0,
"billable": false,
"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
},
"metadata": {},
"pay_rate": 0,
"bill_rate": 0
}
]
}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"
]
}