Breaks

Create a break for a timesheet

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.eyJzdWIiOiI0MiIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTczNzU1MTU1MCwiZXhwIjoxNzQwMTQzNTUwLCJqdGkiOiJiN2VhNWFiYS05YTFhLTQyZjYtYmExMS1jYmQyNzhkN2NjYTkifQ.6Fbc0UnclBXCfLZKdlRVm1NzBAXgmX92KkMD-aMVt2w
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: 47844a30-5c3c-44e2-8e48-8201cede54ae
x-runtime: 0.023942
content-length: 34

Body

{
  "break": {
    "id": 1,
    "duration": null
  }
}