# Apply season assignments `POST /api/v1/presubscriptions/season-assignment/apply` Assigns approved athlete requests to a season or marks them as occasional registrations. ## 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 - `assignments` (array of objects, required) — Supply 1–500 unique request IDs with their preview version and enrollment_scope. Use seasonal with target_season_label, or occasional. - `allow_reassign` (boolean) — Set true to correct a previous assignment. Replace the example request ID and version with the matching `id` and `version` from [Preview season assignments](/api/presubscriptions/season-preview.md). ## 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/apply" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --header "Content-Type: application/json" \ --data '{"assignments":[{"id":34,"version":"5d7c34a32ec4711fbe72428bae37aa9de195ffbfe8800f902294cc27e90180aae","enrollment_scope":"seasonal","target_season_label":"2026/2027"}]}' ``` ## Response **200 OK** Returns how many assignments changed and how many already matched. Example with fictional data and selected fields. ```json { "changed": 1, "unchanged": 0 } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `409` — A selected request changed or reassignment needs confirmation. - `422` — One or more fields failed validation.