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

# End flight authorization by ID

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

## Request

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

Ends a flight authorization by its UUID ID, marking it as ended by the current user

## Path parameters

- `id` string, uuid, required

## Response `200`

Flight authorization ended successfully

- EndFlightAuthResponseDTO
  - `id` string
  - `endedBy` integer
  - `endDate` string

## Other responses

- `400`: Invalid UUID format
- `401`: Authentication required
- `403`: Authorization denied - Access denied for flight authorizations from different organizations or insufficient permissions
- `404`: Flight authorization not found
- `422`: Validation error - Only ACTIVATED status flight authorizations can be ended

---

[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)
