# Remove the attached file `POST /api/v1/medicals/removeFile` Removes the attachment while preserving the record. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Medicals → Write**. ## 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 - `id` (integer, required) — ID of the record. Send as a URL-encoded form field. ## 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/medicals/removeFile" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --data-urlencode "id=${ID:?Set ID}" ``` ## Response **200 OK** Returns confirmation that the attachment was removed. Example with fictional data and selected fields. ```json { "status": "success" } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `400` — There is no attachment or it could not be removed. - `404` — The requested record was not found.