v1
latestOpenAPI 3.0.22026-07-24154101.1 MBTime Punches
Update Time Punch
put/v2/company/{company_id}/time_punches/{time_punch_id}
Path parameters
company_idinteger required
Company id
time_punch_idinteger required
Time punch id
Headers
x-api-versionstring
An API version
Example:2022-05-01
7shifts API version
x-company-guidstring uuid
Company GUID
Request body
Example request
{
"clocked_in": "2021-01-01T00:00:00.000Z",
"clocked_out": "2021-01-01T00:00:00.000Z",
"breaks": [
{
"id": 1234,
"in": "2021-01-01T00:00:00.000Z",
"out": "2021-01-01T00:00:00.000Z",
"custom_break_id": 1234
}
]
}Response
OK
Example response
{
"data": {
"clocked_in": "2020-01-20T12:00:00.000Z",
"clocked_out": "2020-01-20T12:00:00.000Z",
"pos_type": "web",
"breaks": [
{
"in": "2020-01-20T12:00:00-0400",
"out": "2020-01-20T12:00:00-0400"
}
],
"created": "2020-01-20T12:00:00.000Z",
"modified": "2020-01-20T12:00:00.000Z"
}
}