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/184/timelogs/218/approve_as_driver
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTkzIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDcxLCJleHAiOjE3NjM1NDI0NzEsImp0aSI6Ijg3NWMxYjgwLTcyNDMtNDYwYS1iOGNjLTkwYTBkMTk5MGVjNiJ9.AN-4OqsSKEN38q53QVDcQWNkQ7k7fG4pJjvC2iF0Ogo
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/"3a28287d06b1f1fc9cca2c8f2adc7d9c"
cache-control: max-age=0, private, must-revalidate
x-request-id: b889f6ca-e2bb-45a3-9090-dab6014f1d47
x-runtime: 0.044663
content-length: 169
Body
{
"timelog": {
"id": 219,
"amend_status": "approved",
"breaks": [
],
"duration": {
"hours": 8,
"minutes": 1
},
"end_at": "2025-10-20T16:54:31.319Z",
"start_at": "2025-10-20T08:53:31.319Z"
}
}