# Preview season assignments `POST /api/v1/presubscriptions/season-assignment/preview` Finds approved athlete requests eligible for season assignment in a submission date range. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Presubscriptions → Write and Athletes → Read**. ## Headers - `X-Sport-Id` (integer, required) — The sport ID from [List sports](/api/sports/list.md). Use the sport the record belongs to. ## Body parameters - `from` (date string, required) — Inclusive first submission date in YYYY-MM-DD format. - `to` (date string, required) — Inclusive last submission date in YYYY-MM-DD format. - `include_assigned` (boolean) — Use true to include requests that already have an assignment. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/presubscriptions/season-assignment/preview" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --header "Content-Type: application/json" \ --data '{"from":"2026-09-01","to":"2026-11-14"}' ``` ## Response **200 OK** Returns up to 500 requests with version values for applying assignments. The truncated flag indicates additional matches. Example with fictional data and selected fields. ```json { "records_filtered": 1, "truncated": false, "data": [ { "id": 34, "athlete_id": 42, "firstname": "Alex", "surname": "Example", "submitted_at": 1794477600, "approved_at": 1794564000, "enrollment_scope": null, "target_season_label": null, "version": "5d7c34a32ec4711fbe72428bae37aa9de195ffbfe8800f902294cc27e90180aae" } ] } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `422` — One or more fields failed validation.