{ "opencollection": "1.0.0", "info": { "name": "Hubstaff Activities Timesheets 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": "Timesheets", "type": "folder" }, "items": [ { "info": { "name": "List organization timesheets", "type": "http" }, "http": { "method": "GET", "url": "https://api.hubstaff.com/v2/organizations/:organization_id/timesheets", "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": "date[start]", "value": "", "type": "query", "description": "Start date (ISO 8601)" }, { "name": "date[stop]", "value": "", "type": "query", "description": "Stop date (ISO 8601, Inclusive)" }, { "name": "approved[start]", "value": "", "type": "query", "description": "Includes timesheets approved since the specified start date, considering UTC timezone (ISO 8601)" }, { "name": "status", "value": "", "type": "query", "description": "Invoice status" }, { "name": "include", "value": "", "type": "query", "description": "Specify related data to side load." } ] }, "docs": "Returns a collection of timesheets (aggregate approval records) for the given organization.\n\nResults can be filtered by date[start]/[stop], approved[start], and status.\n\nNote: Timesheets are aggregate records used by the timesheet approval system, not individual time entries." }, { "info": { "name": "Update timesheet status", "type": "http" }, "http": { "method": "PUT", "url": "https://api.hubstaff.com/v2/timesheets/:timesheet_id", "params": [ { "name": "timesheet_id", "value": "", "type": "path", "description": "Timesheet ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates a timesheet status or updates the denial reason on an already denied timesheet.\n\nAllowed statuses are open, submitted, approved, and denied. A denial_reason is required when transitioning a timesheet to denied.\n\nApproving a timesheet can require explicit confirmation when the period has pending manual time requests or pending time off requests.\nIf pending manual time requests would be denied, the endpoint returns 422 with error_code 14905; repeat the request with confirm_pending_manual_t" } ] } ], "bundled": true }