Update timesheet(Clock Out)
Timesheets
PUT clock out
Endpoint
PUT /api/v1/timesheets/:id
Request
Route
PUT /api/v1/timesheets/181
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTk0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTg3LCJleHAiOjE3NDAxNDM1ODcsImp0aSI6ImE5ODBhNmVhLTY4NTgtNGZkYi1hMzFjLTU1OTBkNTgyMTc3MyJ9.Du1VGh6Veg_hMaUl_Ctb12PFEvjr2rrJRN9VbQTp-UQ
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/"366e777404222fd7df5879ba47d51cb4"
cache-control: max-age=0, private, must-revalidate
x-request-id: c7529dc1-6864-41e6-a882-8118feee5e08
x-runtime: 0.016109
content-length: 322
Body
{
"timesheet": {
"id": 181,
"date": "2025-01-22",
"job_number": 40797445,
"job_title": "Lead Marketing Architect",
"payment_state": "pending",
"status": "pending",
"timelog": {
"id": 203,
"amend_status": "original",
"breaks": [
],
"duration": {
"seconds": 0
},
"end_at": "2025-01-22T13:13:07.586Z",
"start_at": "2025-01-22T13:13:07.575Z"
},
"total": "0.0"
}
}