# Update a registration request `PATCH / PUT / POST /api/v1/presubscriptions/{id}` Updates a registration request by ID. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Presubscriptions → Write**. ## Headers - `X-Sport-Id` (integer, required) — The sport ID from [List sports](/api/sports/list.md). Use the sport the record belongs to. ## Path parameters - `id` (integer, required) — ID of the registration request. ## Body parameters - `input` (map) — Submitted form values. Use the field keys returned by the existing request. - `consent_answers` (map of booleans) — Optional consent item IDs mapped to true or false. Required consent answers cannot be changed. - `template_id` (integer) — ID of an optional template override. Sending `input` replaces the submitted values. Use [Apply season assignments](/api/presubscriptions/season-apply.md) to change the season. ## Request (PATCH) Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request PATCH \ --url "https://api.asdincloud.com/api/v1/presubscriptions/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --header "Content-Type: application/json" \ --data '{"input":{"athlete.firstname":"Alex","athlete.surname":"Example","athlete.email":"alex@example.com"}}' ``` ## Request (PUT) Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request PUT \ --url "https://api.asdincloud.com/api/v1/presubscriptions/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --header "Content-Type: application/json" \ --data '{"input":{"athlete.firstname":"Alex","athlete.surname":"Example","athlete.email":"alex@example.com"}}' ``` ## Request (POST) 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/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --header "Content-Type: application/json" \ --data '{"input":{"athlete.firstname":"Alex","athlete.surname":"Example","athlete.email":"alex@example.com"}}' ``` ## Response **200 OK** Returns a successful update response. Example with fictional data and selected fields. ```json { "message_key": "entities.presubscription.messages.updated", "data": { "id": 34, "sport_id": 3, "request_type": "athlete", "form_id": 21, "athlete_id": null, "staff_id": null, "input": { "athlete.firstname": "Alex", "athlete.surname": "Example", "athlete.email": "alex@example.com" }, "approved_at": null, "verified_at": null, "enrollment_scope": "seasonal", "target_season_label": "2026/2027" } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `404` — The requested record was not found. - `422` — One or more fields failed validation.