Update timesheet(Clock Out)
Timesheets
PUT clock out
Endpoint
PUT /api/v1/timesheets/:id
Request
Route
PUT /api/v1/timesheets/192
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjQ5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTM0LCJleHAiOjE3NTExMDg1MzQsImp0aSI6IjMyYjJmNTA0LWRhZDctNDJkNi1hYWIxLTFiY2M5OTViODAzMyJ9.RyRTD-BTOPYdyXV6jnG_D4D7TurN9T-Td761phuMz6o
Host: example.org
Cookie:
Body
{
}
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"af8338d80e064969ee3cd89fe51ba93e"
cache-control: max-age=0, private, must-revalidate
x-request-id: bf3e2e1f-f45a-468c-9f4e-1ee3e831723a
x-runtime: 0.013454
content-length: 323
Body
{
"timesheet": {
"id": 192,
"date": "2025-05-29",
"job_number": 1546627,
"job_title": "Human Real-Estate Director",
"payment_state": "pending",
"status": "pending",
"timelog": {
"id": 229,
"amend_status": "original",
"breaks": [
],
"duration": {
"seconds": 0
},
"end_at": "2025-05-29T11:02:14.558Z",
"start_at": "2025-05-29T11:02:14.545Z"
},
"total": "0.0"
}
}