Approve a timelog as a driver(amend)
Timelogs
PUT approve_as_driver timelog(amend)
Endpoint
PUT /api/v1/timesheets/:timesheet_id/timelogs/:id/approve_as_driver
Request
Route
PUT /api/v1/timesheets/200/timelogs/237/approve_as_driver
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjM0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDA2LCJleHAiOjE3NjYyMTg0MDYsImp0aSI6IjQ2NTc0NDc5LTZiMmEtNGM0NC05OTJmLWM3NGMwNTk4NTM4ZCJ9.Em83C5nMb8f75j4J53ykWuuc8cx_OQXOaNRfRttydAo
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/"ab29cbe7635b4a1500e0ebe3a212e2a7"
cache-control: max-age=0, private, must-revalidate
x-request-id: ee078c97-cce5-4aa4-8074-344191232cc8
x-runtime: 0.074082
content-length: 169
Body
{
"timelog": {
"id": 238,
"amend_status": "approved",
"breaks": [
],
"duration": {
"hours": 8,
"minutes": 1
},
"end_at": "2025-11-20T16:13:26.403Z",
"start_at": "2025-11-20T08:12:26.402Z"
}
}