> ## Documentation Index
> Fetch the complete documentation index at: https://docs.series.hr/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Flight

> Update details, schedule, route, or ticket classes for an existing flight

Update flight properties such as flight number, gate assignments, departure/arrival schedules, delay notes, or seat capacity allocations.

## Request

```bash theme={null}
curl -X PUT "https://api.series.hr/flights/update/flt_1740000000000_abcde" \
  -H "apikey: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "OriginGateName": "Gate A3",
    "EstimatedDepartureTime": "2026-09-01T14:15:00.000Z",
    "DelayMinutes": 15,
    "DelayReason": "Air traffic congestion",
    "Remarks": "Delayed 15m"
  }'
```

## Parameters

<ParamField path="flightId" type="string" required>
  The `FlightId` or `FlightNumber` of the flight to update.
</ParamField>

<ParamField body="FlightNumber" type="string">
  Updated flight number.
</ParamField>

<ParamField body="OriginGateId" type="string">
  Updated origin gate ID.
</ParamField>

<ParamField body="OriginGateName" type="string">
  Updated origin gate label.
</ParamField>

<ParamField body="DestinationGateId" type="string">
  Updated destination gate ID.
</ParamField>

<ParamField body="DestinationGateName" type="string">
  Updated destination gate label.
</ParamField>

<ParamField body="ScheduledDepartureTime" type="string">
  Updated scheduled departure timestamp.
</ParamField>

<ParamField body="EstimatedDepartureTime" type="string">
  Updated estimated departure timestamp.
</ParamField>

<ParamField body="DelayMinutes" type="integer">
  Minutes of delay.
</ParamField>

<ParamField body="DelayReason" type="string">
  Reason for delay.
</ParamField>

<ParamField body="Remarks" type="string">
  Custom remarks or announcement text.
</ParamField>

<ParamField body="Classes" type="array">
  Updated array of ticket class allocations.
</ParamField>

## Response

<ResponseField status={200} name="200">
  ```json theme={null}
  {
    "success": true,
    "data": {
      "Message": "Flight updated successfully",
      "Flight": {
        "FlightId": "flt_1740000000000_abcde",
        "FlightNumber": "RA 101",
        "OriginGateName": "Gate A3",
        "EstimatedDepartureTime": "2026-09-01T14:15:00.000Z",
        "DelayMinutes": 15,
        "DelayReason": "Air traffic congestion",
        "Remarks": "Delayed 15m",
        "UpdatedAt": "2026-09-01T13:30:00.000Z"
      }
    }
  }
  ```
</ResponseField>

## Status Codes

* `200`: Flight updated successfully
* `400`: Invalid parameters
* `401`: API key is required
* `404`: Flight not found
