{ "opencollection": "1.0.0", "info": { "name": "Hubstaff Activities Projects API", "version": "2.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://account.hubstaff.com/authorizations/new", "accessTokenUrl": "https://account.hubstaff.com/access_tokens", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Projects", "type": "folder" }, "items": [ { "info": { "name": "List organization projects", "type": "http" }, "http": { "method": "GET", "url": "https://api.hubstaff.com/v2/organizations/:organization_id/projects", "params": [ { "name": "organization_id", "value": "", "type": "path" }, { "name": "page_start_id", "value": "", "type": "query", "description": "The page start ID." }, { "name": "page_limit", "value": "", "type": "query", "description": "The default page size" }, { "name": "status", "value": "", "type": "query", "description": "Project status" }, { "name": "include", "value": "", "type": "query", "description": "Specify related data to side load." }, { "name": "project_ids", "value": "", "type": "query", "description": "List of project IDs" } ] }, "docs": "Returns a collection of projects for the given organization.\n\nResults can be filtered by status (active/archived/all) and project_ids[]." }, { "info": { "name": "Create project", "type": "http" }, "http": { "method": "POST", "url": "https://api.hubstaff.com/v2/organizations/:organization_id/projects", "params": [ { "name": "organization_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new project.\n\nReturns the created project.\n\nOnly name is required. Members can optionally be added with roles: viewer, user, or manager." }, { "info": { "name": "Get project", "type": "http" }, "http": { "method": "GET", "url": "https://api.hubstaff.com/v2/projects/:project_id", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "Project ID" } ] }, "docs": "Returns the project with the given ID." }, { "info": { "name": "Update project", "type": "http" }, "http": { "method": "PUT", "url": "https://api.hubstaff.com/v2/projects/:project_id", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "Project ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates a project.\n\nReturns the updated project.\n\nOnly pass in the fields you want to change. To unset the budget, specify null. To update the budget, you must specify the complete budget configuration.\n\nWhen restoring an archived project, you can only change the status column.\n\nRate handling for pay_rate and bill_rate:\n- To remove a rate, pass null (e.g., pay_rate: null)\n- Custom user rates take precedence over default project rates\n- To apply default project rate to a user, remove their custom" } ] } ], "bundled": true }