Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1.12 KB

update-shift-request.md

File metadata and controls

46 lines (38 loc) · 1.12 KB

Update Shift Request

A request to update a Shift object.

Structure

UpdateShiftRequest

Fields

Name Type Description Getter
Shift Shift A record of the hourly rate, start, and end times for a single work shift
for an employee. May include a record of the start and end times for breaks
taken during the shift.
Shift getShift()

Example (as JSON)

{
  "shift": {
    "team_member_id": "ormj0jJJZ5OZIzxrZYJI",
    "location_id": "PAA1RJZZKXBFG",
    "start_at": "2019-01-25T03:11:00-05:00",
    "end_at": "2019-01-25T13:11:00-05:00",
    "wage": {
      "title": "Bartender",
      "hourly_rate": {
        "amount": 1500,
        "currency": "USD"
      }
    },
    "breaks": [
      {
        "id": "X7GAQYVVRRG6P",
        "start_at": "2019-01-25T06:11:00-05:00",
        "end_at": "2019-01-25T06:16:00-05:00",
        "break_type_id": "REGS1EQR1TPZ5",
        "name": "Tea Break",
        "expected_duration": "PT5M",
        "is_paid": true
      }
    ],
    "version": 1
  }
}