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

# Cancel / Release Seat

> Release booked seats from a ticket class on a flight

Release or decrement booked passenger seats from a ticket class on a flight.

## Request

```bash theme={null}
curl -X POST "https://api.series.hr/flights/cancel-seat" \
  -H "apikey: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "FlightId": "flt_1740000000000_abcde",
    "ClassId": "class_first",
    "SeatsCount": 1
  }'
```

## Parameters

<ParamField body="FlightId" type="string" required>
  The `FlightId` or `FlightNumber` of the flight.
</ParamField>

<ParamField body="ClassId" type="string" required>
  The Class ID, Class Name, or Class Code.
</ParamField>

<ParamField body="SeatsCount" type="integer" default="1">
  Number of seats to release.
</ParamField>

## Response

<ResponseField status={200} name="200">
  ```json theme={null}
  {
    "success": true,
    "data": {
      "Message": "Successfully released 1 seat(s) from First Class",
      "FlightNumber": "RA 101",
      "Class": {
        "ClassId": "class_first",
        "ClassName": "First Class",
        "ClassCode": "F",
        "Capacity": 30,
        "BookedSeats": 12
      }
    }
  }
  ```
</ResponseField>

## Status Codes

* `200`: Seats released successfully
* `401`: API key is required
* `404`: Flight or ticket class not found
