Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 921 Bytes

search-shifts-request.md

File metadata and controls

37 lines (28 loc) · 921 Bytes

Search Shifts Request

A request for a filtered and sorted set of Shift objects.

Structure

SearchShiftsRequest

Fields

Name Type Tags Description
query ShiftQuery | undefined Optional The parameters of a Shift search query, which includes filter and sort options.
limit number | undefined Optional The number of resources in a page (200 by default).
Constraints: >= 1, <= 200
cursor string | undefined Optional An opaque cursor for fetching the next page.

Example (as JSON)

{
  "limit": 100,
  "query": {
    "filter": {
      "workday": {
        "date_range": {
          "end_date": "2019-02-03",
          "start_date": "2019-01-20"
        },
        "default_timezone": "America/Los_Angeles",
        "match_shifts_by": "START_AT"
      }
    }
  }
}