---
title: "Update a pilot"
method: PUT
path: "/orgmng/pilots/{id}"
tags: ["Pilot"]
---

# Update a pilot

`PUT /orgmng/pilots/{id}`

## Request

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

Updates the pilot's information.

## Path parameters

- `id` integer, required

## Request body

- UpdatePilotDTO
  - `phone` string, required
  - `address` AddressDTO, required
    - `streetAddress` string, required
    - `zipCode` string, required
    - `city` string, required
  - `description` string, required

## Response `200`

Pilot updated successfully

- PilotDTO
  - `id` integer
  - `name` string
  - `phone` string
  - `email` string
  - `address` BaseAddressDTO
    - `streetAddress` string
    - `zipCode` string
    - `city` string
  - `description` string
  - `status` string
  - `rejectionReason` string
  - `organization` OrganizationDTO
    - `id` integer
    - `workspaceId` string, uuid
    - `name` string
    - `operatorRegistrationNumber` string
    - `description` string
    - `blockSms` boolean
    - `blockEmail` boolean
    - `active` boolean
  - `pilotRegistrationNumber` string
  - `eligibilityConfirmedAt` string, date-time

## Other responses

- `400`: Invalid input
- `403`: Access forbidden - user does not have permission to update pilot
- `404`: Pilot not found
- `422`: Invalid input data
- `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)
