v1

latestOpenAPI 3.1.1LicenseRef-Proprietary2026-07-1310179223.1 KB
Timesheets

Approve or Reject Approval Request

Approve or reject an existing timesheet approval request.

Use this endpoint to act on a request previously created with POST /timesheets/{timesheet_id}/approval. The response reflects the resulting approval state.

put/timesheets/{timesheet_id}/approval

Path parameters

timesheet_idnumber required
Example:148562535

Timesheet ID

Request body

status'approved' | 'rejected'
commentstring
sendNotificationboolean

Example request

{
  "days": {
    "monday": true,
    "tuesday": true,
    "wednesday": true,
    "thursday": true,
    "friday": true
  },
  "status": "approved",
  "comment": "some text"
}

Response

OK

idnumber

Timesheet ID

usernumber

User ID

weekIdnumber
reviewernumber

Reviewer User ID

status'pending' | 'rejected' | 'approved' | 'partial_approved' | 'discarded'
totalTimeinteger nullable

Total approved time in seconds.

Example response

{
  "id": 148562535,
  "user": 14856,
  "weekId": 2535,
  "reviewer": 14854,
  "history": [
    {
      "action": "submitted",
      "days": {
        "monday": true,
        "tuesday": true,
        "wednesday": true,
        "thursday": true,
        "friday": true
      },
      "user": 2535,
      "comment": "some text",
      "createdAt": "2025-08-05 16:17:14"
    }
  ]
}