timesheets

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.

put/v2/timesheets/{timesheet_id}

Request

Path parameters

timesheet_idinteger required

Timesheet ID

Request body

status'open' | 'submitted' | 'approved' | 'denied' required

New status

denial_reasonstring

Denial reason

confirm_pending_manual_time_request_denialboolean

Required to approve a timesheet with pending manual time requests that will be denied.

acknowledge_pending_time_off_requestsboolean

Required to approve a timesheet with pending time off requests in the same period.

Response

The updated timesheet

Changes

No recorded changes to this operation across all 1 revision of this API.