---
title: "Shutdown USpace"
method: POST
path: "/flight-auths/uspace-action/shutdown"
tags: ["USpaceAction"]
---

# Shutdown USpace

`POST /flight-auths/uspace-action/shutdown`

## Request

- Base URL: `http://localhost:8486`
- URL: `http://localhost:8486/flight-auths/uspace-action/shutdown`
- Auth: API key in header `x-auth-token`

Shuts down a USpace and withdraws all affected flight authorizations

## Request body

- ShutdownUSpaceRequestDTO: Shutdown request data
  - `uspaceId` integer, required: USpace ID to shutdown

## Response `200`

USpace shut down successfully

- USpaceActionDTO: USpaceAction response DTO
  - `id` integer: Unique identifier
  - `uspaceId` integer: USpace ID
  - `uspaceName` string: USpace name
  - `command` string: Command name
  - `actionDate` string, date-time: Action date and time
  - `initiatorId` integer: ID of the user who initiated the action
  - `flightAuthorizationIds` string[]: List of affected flight authorization IDs
  - `status` 'NEW' | 'INPROGRESS' | 'FINISHED' | 'ERROR': Action status

## Other responses

- `400`: Invalid input data
- `404`: USpace not found
- `422`: Validation failed
- `500`: Internal server error

---

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