---
title: "Withdraw flight authorization by ID"
method: POST
path: "/flight-auths/{id}/withdraw"
tags: ["flight-authorization"]
---

# Withdraw flight authorization by ID

`POST /flight-auths/{id}/withdraw`

## Request

- Base URL: `http://localhost:8486`
- URL: `http://localhost:8486/flight-auths/{id}/withdraw`
- Auth: API key in header `x-auth-token`

Withdraws a flight authorization by its UUID ID, marking it as withdrawn by the current user with a reason

## Path parameters

- `id` string, uuid, required

## Request body

- WithdrawFlightAuthRequestDTO: Withdrawal request data
  - `reasonCode` 'DYNAMIC_AIRSPACE_RECONFIGURATION' | 'MANNED_AIRCRAFT_EMERGENCY_TRAFFIC' | 'ATC_OR_ANSP_DIRECTIVE' | 'PRIORITY_OPERATION_PREEMPTION' | 'WEATHER_BELOW_MINIMA' | 'GEOZONE_CONDITION_NOT_MET' | 'NO_ACTIVATION_WITHIN_TIME_WINDOW' | 'CONFLICT_UNRESOLVABLE_AFTER_ACCEPTANCE' | 'REQUIRED_SERVICE_UNAVAILABLE' | 'DATA_INTEGRITY_OR_SECURITY_RISK' | 'LAW_ENFORCEMENT_OR_EMERGENCY_CLEARANCE' | 'SUPERSEDED_BY_NEW_AUTHORIZATION' | 'LOCAL_AREA_EMERGENCY', required: Reason code for withdrawal
  - `reasonDescription` string, required: Detailed description of the withdrawal reason

## Response `200`

Flight authorization withdrawn successfully

- WithdrawFlightAuthResponseDTO
  - `id` string
  - `withdrawnBy` integer
  - `withdrawalDate` string
  - `reasonDescription` string
  - `reasonCode` 'DYNAMIC_AIRSPACE_RECONFIGURATION' | 'MANNED_AIRCRAFT_EMERGENCY_TRAFFIC' | 'ATC_OR_ANSP_DIRECTIVE' | 'PRIORITY_OPERATION_PREEMPTION' | 'WEATHER_BELOW_MINIMA' | 'GEOZONE_CONDITION_NOT_MET' | 'NO_ACTIVATION_WITHIN_TIME_WINDOW' | 'CONFLICT_UNRESOLVABLE_AFTER_ACCEPTANCE' | 'REQUIRED_SERVICE_UNAVAILABLE' | 'DATA_INTEGRITY_OR_SECURITY_RISK' | 'LAW_ENFORCEMENT_OR_EMERGENCY_CLEARANCE' | 'SUPERSEDED_BY_NEW_AUTHORIZATION' | 'LOCAL_AREA_EMERGENCY'

## Other responses

- `400`: Invalid UUID format or request body
- `401`: Authentication required
- `403`: Authorization denied
- `404`: Flight authorization not found
- `422`: Validation error - Only ACTIVATED or ACCEPTED status flight authorizations can be withdrawn

---

[API](https://skmtc.dev/airdodge/apis/api-core.md) - [All operations](https://skmtc.dev/airdodge/apis/api-core/llms.txt) - [OpenAPI document](https://skmtc.dev/airdodge/apis/api-core/revisions/fb3c5a1055cc?raw)
