FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
ameliabooking
/
vendor
/
square
/
square
/
doc
/
models
Edit File: search-shifts-request.md
# Search Shifts Request A request for a filtered and sorted set of `Shift` objects. ## Structure `SearchShiftsRequest` ## Fields | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | | `query` | [`?ShiftQuery`](../../doc/models/shift-query.md) | Optional | The parameters of a `Shift` search query, which includes filter and sort options. | getQuery(): ?ShiftQuery | setQuery(?ShiftQuery query): void | | `limit` | `?int` | Optional | The number of resources in a page (200 by default).<br>**Constraints**: `>= 1`, `<= 200` | getLimit(): ?int | setLimit(?int limit): void | | `cursor` | `?string` | Optional | An opaque cursor for fetching the next page. | getCursor(): ?string | setCursor(?string cursor): void | ## Example (as JSON) ```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" }, "location_ids": [ "location_ids4" ], "employee_ids": [ "employee_ids9" ], "status": "OPEN", "start": { "start_at": "start_at6", "end_at": "end_at6" }, "end": { "start_at": "start_at0", "end_at": "end_at2" } }, "sort": { "field": "START_AT", "order": "DESC" } }, "cursor": "cursor2" } ```
Save
Back