> For the complete documentation index, see [llms.txt](https://knowledgebase.flaik.com/flaik-knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.flaik.com/flaik-knowledge-base/for-it-specialists/3.-flaik-connect-api/schedule.md).

# Schedule

Employee schedule data — shifts and instructor task assignments — for syncing into data warehouses, payroll systems, workforce-management tools, and BI. The two endpoints in this group are the highest-volume use case for most Connect integrations.

Both endpoints follow the same paginated, dual-route pattern: a **full pull** for the initial load and a **delta pull** for ongoing incremental sync. Read [Pagination and Delta Sync](https://knowledgebase.flaik.com/flaik-knowledge-base/for-it-specialists/3.-flaik-connect-api/overview/pagination-and-delta-sync) once before building either; the cursor mechanics are identical across both.

### Pages in this group

* [**Shift Data By Season**](https://knowledgebase.flaik.com/flaik-knowledge-base/for-it-specialists/3.-flaik-connect-api/schedule/shift-data-by-season) — employee shifts (`GET /api/schedule/shifts/{seasonId}` and `…/delta`). Use for payroll, labour planning, time-and-attendance.
* [**Task Data By Season**](https://knowledgebase.flaik.com/flaik-knowledge-base/for-it-specialists/3.-flaik-connect-api/schedule/task-data-by-season) — instructor task assignments (`GET /api/schedule/tasks/{seasonId}` and `…/delta`). Use for teaching analytics, productivity reporting, instructor utilisation.

### Typical sync pattern

1. Run the **full pull** once to seed your store.
2. Record the timestamp at which the full pull completed.
3. From then on, run the **delta pull** on a schedule (every few minutes for near-real-time, or hourly/nightly for batch), passing the timestamp of your last successful sync.
4. Apply soft-deleted records (`deleted: true` from the delta pull) as tombstones in your store.

See the [Pagination and Delta Sync](https://knowledgebase.flaik.com/flaik-knowledge-base/for-it-specialists/3.-flaik-connect-api/overview/pagination-and-delta-sync) page for the cursor pattern, recovery rules, and common pitfalls.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://knowledgebase.flaik.com/flaik-knowledge-base/for-it-specialists/3.-flaik-connect-api/schedule.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
