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.eyJzdWIiOiI0MiIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc0ODUxNjQ5MywiZXhwIjoxNzUxMTA4NDkzLCJqdGkiOiI0ZmEzNzBhZS1iMjA0LTRjZjYtOWY3OC01Y2I5NTAyOTcxZDYifQ.uozMHDUGf6DIMXXBKw-ThtMXBvtrjvP9gtPE6Gg2FtQ
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: 4b63f3aa-1f93-4645-81df-22eaff4eee55
x-runtime: 0.021706
content-length: 34

Body

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