Update timesheet status
Updates a timesheet status or updates the denial reason on an already denied timesheet.
Allowed statuses are open, submitted, approved, and denied. A denial_reason is required when transitioning a timesheet to denied.
Approving a timesheet can require explicit confirmation when the period has pending manual time requests or pending time off requests. If pending manual time requests would be denied, the endpoint returns 422 with error_code 14905; repeat the request with confirm_pending_manual_time_request_denial set to true. If the period has pending time off requests, the endpoint returns 422 with error_code 14906; repeat the request with acknowledge_pending_time_off_requests set to true.
Request
- Base URLhttps://api.hubstaff.com
- AuthOAuth 2Authorization codehttps://account.hubstaff.com/authorizations/newToken URLhttps://account.hubstaff.com/access_tokensScopeshubstaff:read, hubstaff:write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Timesheet ID
Request body
Response
The updated timesheet
Changes
No recorded changes to this operation across all 1 revision of this API.