---
title: "Partially update an existing flight"
url: "https://devportal.jilson.dev/apis/kong-air-ap-is-1-0-0/versions/7a8b8282-7fdc-432a-a618-88582e8fb712/paths/flights-flightNumber/patch"
---

> Full API specification: https://devportal.jilson.dev/apis/kong-air-ap-is-1-0-0/versions/7a8b8282-7fdc-432a-a618-88582e8fb712.md

# Partially update an existing flight

`PATCH` `/flights/{flightNumber}`

Partially updates an existing flight.

## Path parameters

- `flightNumber` (string, required) - The flight number to update

## Request body (required)

Content types: `application/json`

## Responses

- `200` - Flight updated successfully
- `404` - Flight not found

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: KongAir APIs
  version: 1.0.0
servers:
  - url: https://api.kongair.dev
    description: KongAir API Dev
paths:
  /flights/{flightNumber}:
    patch:
      summary: Partially update an existing flight
      description: Partially updates an existing flight.
      tags:
        - Flights
      parameters:
        - name: flightNumber
          in: path
          description: The flight number to update
          required: true
          style: simple
          schema:
            type: string
      requestBody:
        description: Partial flight details to update
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/Flight"
      responses:
        "200":
          description: Flight updated successfully
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Flight"
        "404":
          description: Flight not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
security:
  - ApiKeyAuth: []
  - BearerAuth: []
components:
  schemas:
    Flight:
      type: object
      properties:
        number:
          type: string
        route_id:
          type: string
        scheduled_departure:
          type: string
          format: date-time
        scheduled_arrival:
          type: string
          format: date-time
      required:
        - number
        - route_id
        - scheduled_departure
        - scheduled_arrival
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
```
