Timelogs

Approve a timelog(amend)

PUT approve timelog(amend)

Endpoint

PUT /api/v1/timesheets/:timesheet_id/timelogs/:id

Request

Route

PUT /api/v1/timesheets/181/timelogs/192

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTgyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQ1LCJleHAiOjE3NDUwNTY5NDUsImp0aSI6Ijk4ZWEwYTAxLTBjM2EtNGFkOS1hOGU2LTk3NTJlODVjNmJiNCJ9.6NpNLrgRQ6kZUVZVBJzHCIdghf5qjdEu0EeH6N5RTy4
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/"726719ad3182b64d3d39c52e79d0bd9e"
cache-control: max-age=0, private, must-revalidate
x-request-id: 85f94d2e-220f-4abf-bdd1-ceb83c5361f1
x-runtime: 0.036306
content-length: 169

Body

{
  "timelog": {
    "id": 193,
    "amend_status": "approved",
    "breaks": [

    ],
    "duration": {
      "hours": 8,
      "minutes": 1
    },
    "end_at": "2025-03-20T18:02:25.716Z",
    "start_at": "2025-03-20T10:01:25.716Z"
  }
}