You can read and post crew members of a flight

Read

To read you can use this endpoint

GET /api/external/flight/{flightId}/crew

Returns the crew list of the flight

The TLC can be found if previously assigned to the crew personnel, as “trigram”: “SOB” in the response body after calling api/external/{flightId)/crew

{
    "flightId": 19040,
    "externalReference": null,
    "crews": [
        {
            "pilotId": 99945,
            "externalReference": null,
            "firstName": "Simon",
            "lastName": "E-Tiger",
            "logName": "de5c694a-d1bd-4464-94e1-9473be6c8871",
            "role": "CMD",
            "phone": null,
            "mobile": +1223456789,
            "email": "[email protected]",
            "isPilotLanding": true,
            "isPilotTakeoff": true,
            "trigram": null
        }
        
    ]
}

Roles legend

  • CMD, Pilot In Comand(PIC)
  • FO, Second In Comand(SIC)
  • ENG , Onboard Engineer
  • FA, Flight Attendant

Post

POST /api/external/flight/{flightId}/crew

The post method for the crew endpoint allows to Post, Update and Delete crew members from a flight using the same functionality.

Every time you call this endpoint, the system will update the current crew layout with the layout sent in the payload request.

Posting Crew

Example Posting a crew layout with the PIC, SIC, and one FO

[
	{
		"pilotId": 141003,
		"role": "CMD"
	},
	{
		"pilotId": 385397,
		"role": "FO"
	},
	{
		"pilotId": 387657,
		"role": "FA"
	}
]

Example Response

{
    "flightId": 316747,
    "externalReference": null,
    "crews": [
        {
            "pilotId": 385397,
            "firstName": "Shaquille",
            "lastName": "O'Neal",
            "logName": "Shaq",
            "role": "FO",
            "isPilotLanding": false,
            "isPilotTakeoff": false,
            "weightUnit": "KILOGRAM",
            "luggageUnit": "KILOGRAM",
			 			"personnelNumber": "034"
        },
        {
            "pilotId": 387657,
            "firstName": "Stephen",
            "lastName": "Curry",
            "logName": "Chef",
            "role": "FA",
            "isPilotLanding": false,
            "isPilotTakeoff": false,
            "weightUnit": "KILOGRAM",
            "luggageUnit": "KILOGRAM",
			 			"personnelNumber": "030"
        },
        {
            "pilotId": 141003,
            "firstName": "Lebron",
            "lastName": "James",
            "logName": "King",
            "role": "CMD",
            "isPilotLanding": false,
            "isPilotTakeoff": false,
            "weightUnit": "KILOGRAM",
            "luggageUnit": "KILOGRAM",
            "personnelNumber": "023"
        }
    ]
}

Updating Crew

Example of updating a crew member

The FO 385397 was replaced for 432936

[
	{
		"pilotId": 141003,
		"role": "CMD"
	},
	{
		"pilotId": 432936,
		"role": "FO"
	},
	{
		"pilotId": 387657,
		"role": "FA"
	}
]

Example Response

		"flightId": 316747,
    "externalReference": null,
    "crews": [
        {
            "pilotId": 432936,
            "firstName": "Giannis",
            "lastName": "Antetokounmpo",
            "logName": "GreekFreak",
            "role": "FO",
            "isPilotLanding": false,
            "isPilotTakeoff": false,
            "weightUnit": "KILOGRAM",
            "luggageUnit": "KILOGRAM",
			"personnelNumber": "034"
        },
        {
            "pilotId": 387657,
            "firstName": "Stephen",
            "lastName": "Curry",
            "logName": "Chef",
            "role": "FA",
            "isPilotLanding": false,
            "isPilotTakeoff": false,
            "weightUnit": "KILOGRAM",
            "luggageUnit": "KILOGRAM",
			"personnelNumber": "030"
        },
        {
            "pilotId": 141003,
            "firstName": "Lebron",
            "lastName": "James",
            "logName": "King",
            "role": "CMD",
            "isPilotLanding": false,
            "isPilotTakeoff": false,
            "weightUnit": "KILOGRAM",
            "luggageUnit": "KILOGRAM",
            "personnelNumber": "023"
        }
    ]
}

Deleting Crews

Example of deleting the current crew and adding a different CMD

If the request body is empty, FL3XX system will reset all the crew layout to empty.

[
	{
		"pilotId": 23081978,
		"role": "CMD"
	}
]

Example Response

		"flightId": 316747,
    "externalReference": null,
    "crews": [
        {
            "pilotId": 23081978,
            "firstName": "Kobe",
            "lastName": "Bryant",
            "logName": "Mamba",
            "role": "CMD",
            "isPilotLanding": false,
            "isPilotTakeoff": false,
            "weightUnit": "KILOGRAM",
            "luggageUnit": "KILOGRAM",
						"personnelNumber": "024"
        }
    ]