> ## 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.

# Auto Progress Statuses

> Trigger automatic status progression for active flights. Series updates them every 1 minute.

Evaluate and update the status of active flights based on scheduled departure/arrival times and your workspace's configured minute progression offsets.

## Request

```bash theme={null}
curl -X POST "https://api.series.hr/flights/auto-progress" \
  -H "apikey: YOUR_API_KEY"
```

## Progression Timeline

When auto-progression is enabled, flights transition automatically:

1. `scheduled` → `boarding` ($T_{\text{departure}} - \text{BoardingMinutesBefore}$)
2. `boarding` → `gate_closed` ($T_{\text{departure}} - \text{GateClosedMinutesBefore}$)
3. `gate_closed` → `departed` ($T_{\text{departure}} + \text{DepartedMinutesOffset}$)
4. `departed` → `in_flight` ($T_{\text{departure}} + \text{InFlightMinutesOffset}$)
5. `in_flight` → `landed` ($T_{\text{arrival}} - \text{LandedMinutesOffset}$)
6. `landed` → `arrived` ($T_{\text{arrival}} + \text{ArrivedMinutesOffset}$)

## Response

<ResponseField status={200} name="200">
  ```json theme={null}
  {
    "success": true,
    "data": {
      "Message": "Evaluated 8 active flights. Updated 2 flights.",
      "EvaluatedCount": 8,
      "UpdatedCount": 2,
      "UpdatedFlights": [
        {
          "FlightNumber": "RA 101",
          "OldStatus": "scheduled",
          "NewStatus": "boarding"
        },
        {
          "FlightNumber": "RA 204",
          "OldStatus": "departed",
          "NewStatus": "in_flight"
        }
      ]
    }
  }
  ```
</ResponseField>

## Status Codes

* `200`: Progression evaluated and updated flights returned
* `401`: API key is required
* `403`: Flights module is not enabled
