Timelogs

Approve a timelog(amend)

PUT approve timelog(amend)

Endpoint

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

Request

Route

PUT /api/v1/timesheets/179/timelogs/205

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjAwIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTMyLCJleHAiOjE3NTExMDg1MzIsImp0aSI6ImJiZmRjMmZmLTc1NWYtNGFkMC1hMzE5LWRhY2MyZjI0Zjk5NyJ9.Go9CzGbKH2t7jtfdVl1vK7h5gYITAVX8KI1HHVpG3Hg
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/"8ba2d04a760f32bf887a5eb467875851"
cache-control: max-age=0, private, must-revalidate
x-request-id: 864e027b-a769-4793-a953-6f39d9628cd5
x-runtime: 0.030825
content-length: 169

Body

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

    ],
    "duration": {
      "hours": 8,
      "minutes": 1
    },
    "end_at": "2025-05-29T19:02:12.910Z",
    "start_at": "2025-05-29T11:01:12.910Z"
  }
}