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

# Operations Endpoints

> API reference for flight operations endpoints: trips, fleet management, crew, dispatch, passengers, and maintenance.

The operations endpoints cover flight department management for Part 135 operators. They are organized across several route groups under `/api/v1/`.

All operations endpoints require authentication.

## Trips

Manage flight trips and multi-leg itineraries.

**Base path:** `/api/v1/flights/trips`

| Method   | Path         | Description            |
| -------- | ------------ | ---------------------- |
| `GET`    | `/trips`     | List trips (paginated) |
| `GET`    | `/trips/:id` | Get a single trip      |
| `POST`   | `/trips`     | Create a new trip      |
| `PATCH`  | `/trips/:id` | Update a trip          |
| `DELETE` | `/trips/:id` | Delete a trip          |

### Create Trip

```bash theme={}
curl -X POST "https://api.planeconnection.com/api/v1/flights/trips" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "aircraftId": "ac_abc123",
    "tripType": "charter",
    "status": "scheduled",
    "departureDate": "2026-04-01",
    "returnDate": "2026-04-03"
  }'
```

## Trip Legs

Manage individual segments of a multi-leg trip.

**Base path:** `/api/v1/flights/trip-legs`

| Method   | Path             | Description           |
| -------- | ---------------- | --------------------- |
| `GET`    | `/trip-legs`     | List trip legs        |
| `GET`    | `/trip-legs/:id` | Get a single trip leg |
| `POST`   | `/trip-legs`     | Create a trip leg     |
| `PATCH`  | `/trip-legs/:id` | Update a trip leg     |
| `DELETE` | `/trip-legs/:id` | Delete a trip leg     |

***

## Aircraft Fleet

Manage aircraft and related maintenance data.

**Base path:** `/api/v1/aircraft`

| Method   | Path                           | Description                      |
| -------- | ------------------------------ | -------------------------------- |
| `GET`    | `/aircraft`                    | List aircraft (paginated)        |
| `GET`    | `/aircraft/:id`                | Get a single aircraft            |
| `POST`   | `/aircraft`                    | Add an aircraft to the fleet     |
| `PATCH`  | `/aircraft/:id`                | Update aircraft details          |
| `DELETE` | `/aircraft/:id`                | Remove an aircraft (soft delete) |
| `GET`    | `/aircraft/hours/:aircraftId`  | Get aircraft hours               |
| `PATCH`  | `/aircraft/hours/:aircraftId`  | Update aircraft hours            |
| `GET`    | `/aircraft/status/:aircraftId` | Get aircraft status              |

### Aircraft Sub-Resources

| Base Path                   | Description                |
| --------------------------- | -------------------------- |
| `/aircraft/wb-profiles`     | Weight & balance profiles  |
| `/aircraft/discrepancies`   | Squawks and defects        |
| `/aircraft/due-items`       | Maintenance due items      |
| `/aircraft/maintenance-due` | Maintenance due items (v2) |
| `/aircraft/maintenance-log` | Maintenance log entries    |

<Info>
  Aircraft endpoints comply with 14 CFR Part 135 Subpart J (maintenance requirements), 14 CFR Part
  43 (maintenance records), and 14 CFR Part 5.71 (safety performance monitoring).
</Info>

***

## Crew Management

Manage crew members, qualifications, scheduling, and duty time.

**Base path:** `/api/v1/crew`

| Method   | Path        | Description                        |
| -------- | ----------- | ---------------------------------- |
| `GET`    | `/crew`     | List crew members (paginated)      |
| `GET`    | `/crew/:id` | Get a single crew member           |
| `POST`   | `/crew`     | Create a crew member               |
| `PATCH`  | `/crew/:id` | Update a crew member               |
| `DELETE` | `/crew/:id` | Remove a crew member (soft delete) |

### Crew Sub-Resources

| Base Path                 | Description                              |
| ------------------------- | ---------------------------------------- |
| `/crew/currency`          | Crew currency and qualification tracking |
| `/crew/schedules`         | Crew schedules                           |
| `/crew/logbook`           | Crew logbook entries (14 CFR 61.51)      |
| `/crew/assignment-types`  | Schedule assignment type definitions     |
| `/crew/availability`      | Crew availability blocks                 |
| `/crew/assigned-aircraft` | Crew aircraft access assignments         |
| `/crew/duty-time`         | Duty time records (14 CFR 135 Subpart F) |
| `/crew/qualifications`    | Aircraft type qualifications             |

### List Crew Members

```bash theme={}
curl -X GET "https://api.planeconnection.com/api/v1/crew?page=1&page_size=20" \
  -H "Authorization: Bearer $TOKEN"
```

***

## Flight Crew Assignments

Assign crew members to trip legs.

**Base path:** `/api/v1/flights/crew`

| Method   | Path        | Description               |
| -------- | ----------- | ------------------------- |
| `GET`    | `/crew`     | List crew assignments     |
| `POST`   | `/crew`     | Assign crew to a trip leg |
| `PATCH`  | `/crew/:id` | Update a crew assignment  |
| `DELETE` | `/crew/:id` | Remove a crew assignment  |

***

## Passengers

Manage passenger records and manifests.

**Base path:** `/api/v1/passengers` and `/api/v1/flights/passengers`

| Method   | Path              | Description                 |
| -------- | ----------------- | --------------------------- |
| `GET`    | `/passengers`     | List passengers (paginated) |
| `GET`    | `/passengers/:id` | Get a single passenger      |
| `POST`   | `/passengers`     | Create a passenger record   |
| `PATCH`  | `/passengers/:id` | Update passenger details    |
| `DELETE` | `/passengers/:id` | Remove a passenger record   |

***

## Flight Schedules

Manage crew scheduling and assignment types.

**Base path:** `/api/v1/flights/schedules`

| Method   | Path             | Description             |
| -------- | ---------------- | ----------------------- |
| `GET`    | `/schedules`     | List schedule entries   |
| `POST`   | `/schedules`     | Create a schedule entry |
| `PATCH`  | `/schedules/:id` | Update a schedule entry |
| `DELETE` | `/schedules/:id` | Delete a schedule entry |

***

## Dispatch & Flight Status

**Base path:** `/api/v1/flights/status`

Track real-time flight status for dispatch operations.

***

## Flight Logbook

Record and query flight hours and flight log entries.

**Base path:** `/api/v1/flights/logbook`

| Method  | Path           | Description            |
| ------- | -------------- | ---------------------- |
| `GET`   | `/logbook`     | List logbook entries   |
| `POST`  | `/logbook`     | Create a logbook entry |
| `PATCH` | `/logbook/:id` | Update a logbook entry |

***

## Due Items (Maintenance Tracking)

Track maintenance due items across the fleet.

**Base path:** `/api/v1/flights/due-items`

| Method   | Path             | Description                |
| -------- | ---------------- | -------------------------- |
| `GET`    | `/due-items`     | List maintenance due items |
| `POST`   | `/due-items`     | Create a due item          |
| `PATCH`  | `/due-items/:id` | Update a due item          |
| `DELETE` | `/due-items/:id` | Delete a due item          |

***

## Flight Risk Assessment Tool (FRAT)

Conduct pre-flight risk assessments.

**Base path:** `/api/v1/flights/frat`

| Method  | Path        | Description              |
| ------- | ----------- | ------------------------ |
| `GET`   | `/frat`     | List FRAT assessments    |
| `POST`  | `/frat`     | Create a FRAT assessment |
| `PATCH` | `/frat/:id` | Update a FRAT assessment |

***

## Weight & Balance (W\&B)

Weight and balance calculations and profile management.

**Base path:** `/api/v1/ops/wb`

***

## Catering

Manage catering providers and trip catering orders.

| Base Path                  | Description                    |
| -------------------------- | ------------------------------ |
| `/api/v1/flights/caterers` | Catering provider directory    |
| `/api/v1/flights/catering` | Trip catering order management |

***

## Ground Transportation

Manage ground transport providers and trip bookings.

| Base Path                             | Description                              |
| ------------------------------------- | ---------------------------------------- |
| `/api/v1/flights/transport-providers` | Ground transportation provider directory |
| `/api/v1/flights/transport`           | Trip ground transport bookings           |

***

## Cost Reconciliation

Approve and reconcile trip costs.

**Base path:** `/api/v1/flights/reconciliation`

***

## Training Assessments

Manage flight training maneuver templates and assessment grades.

| Base Path                            | Description                          |
| ------------------------------------ | ------------------------------------ |
| `/api/v1/flights/training-templates` | Maneuver template definitions        |
| `/api/v1/flights/training`           | Trip training assessments and grades |
