Timelogs

Approve a timelog(amend)

PUT approve timelog(amend)

Endpoint

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

Request

Route

PUT /api/v1/timesheets/168/timelogs/179

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTUxIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTg2LCJleHAiOjE3NDAxNDM1ODYsImp0aSI6IjQ3OTljZjk3LWVmMzAtNDY0OS04ZTkzLWRiODcwMmMzNzhkZiJ9.mUxP4Ud1gQas9CMKKrUkdVp05KOT2lJK4Wn_O9nUOXM
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/"59f544e1c1fa318cc3b62e62646d636a"
cache-control: max-age=0, private, must-revalidate
x-request-id: d25c7931-330a-483f-97d6-48fa378af038
x-runtime: 0.037084
content-length: 169

Body

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

    ],
    "duration": {
      "hours": 8,
      "minutes": 1
    },
    "end_at": "2025-01-22T21:13:06.312Z",
    "start_at": "2025-01-22T13:12:06.312Z"
  }
}