Create a break for a timesheet
Breaks
POST start break
Endpoint
POST /api/v1/timesheets/:timesheet_id/breaks
Request
Route
POST /api/v1/timesheets/1/breaks
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI0MiIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc0MjQ2NDkwNCwiZXhwIjoxNzQ1MDU2OTA0LCJqdGkiOiJmZTZlNTcxMi01MWNiLTQxNDEtYWZiOS1mNzJjNTUyNzA2NTEifQ.h9i-YHCg_DrsVOK0hHGuAvjXhCBeHaKG_g71mVNlOhE
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/"596d7c77e3fb70dbc55c14c7c503530c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 08fa6910-08bd-41b4-ba3a-7f9970a94ecc
x-runtime: 0.025986
content-length: 34
Body
{
"break": {
"id": 1,
"duration": null
}
}