Create timesheet (Clock In)
Timesheets
POST clock in
Endpoint
POST /api/v1/timesheets
Parameters
Name | Description |
---|---|
timesheet[job_id] required | Job ID |
Request
Route
POST /api/v1/timesheets
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTcwIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTg2LCJleHAiOjE3NDAxNDM1ODYsImp0aSI6IjI4ODFkYTU2LWE5NTUtNDRkZi05OWYwLWI4Yjg0NTU2Zjg5MCJ9.Y1WHyDO4cwewT4WmcnI7U5t8pvfRGnZfjIXrDR8eqig
Host: example.org
Cookie:
Body
{
"timesheet": {
"job_id": 575
}
}
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/"8f5d263066a87dc39e59539def058609"
cache-control: max-age=0, private, must-revalidate
x-request-id: 8cef4315-ac47-43a4-bd1a-1ea39805a9c9
x-runtime: 0.017858
content-length: 306
Body
{
"timesheet": {
"id": 176,
"date": "2025-01-22",
"job_title": "Legacy Developer",
"overtime_after": {
"seconds": 0.0
},
"overtime_rate": "0.0",
"payment_state": "pending",
"rate": "14.607",
"status": "in_progress",
"timelog": {
"id": 198,
"amend_status": "original",
"breaks": [
],
"end_at": null,
"start_at": "2025-01-22T13:13:06.899Z"
}
}
}