The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Terms of Use and Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content
Aviation Data Hub

Onboard, integrate and share structured and unstructured data with all data processing systems and applications throughout the airport.

Flight Vertical Samples¶

Create new flight leg cancelled event¶

  1. Find the interface POST/flightlegs/events/cancelled.
  2. Copy and edit the example value below into Notepad/Editor as the example following. Remember to update event time, created time, and origin date to current date and time.
  3. POST the flight leg cancelled event.
  4. Find the GET /flightlegs/events interface and check the result.

    {
        "event-type": "FLIGHT_CANCELLED_EVENT",
        "event-time": "2999-03-05T08:11:41.069Z",
        "location": "S3",
        "source": "ADH",
        "identifier": {
            "carrier": "EK",
            "flight-number": 99,
            "operational-suffix": "01",
            "origin-date": "2999-03-05",
            "origin-iata-code": "DXB",
            "destination-iata-code": "FRA"
        },
        "secondary-identifiers": [
            {
                "identifier": "ADH_TUTORIAL",
                "created": "2999-03-05T08:12:00.612Z",
                "source": "ADH"
            }
        ]
    }
    
  5. Run the GET /flightlegs REST call with the parameters as listed below.

  6. In the response body, you should see the flight leg with an id as a combination of [carrier-flightnumber][operational-suffix][origin-date][origin-IATA-code][destination-IATA-code] and state: CANCELLED.
ParameterValue
carrierEK
flight-number99

Create aircraft allocation event¶

  1. Find the interface description of POST /flightlegs/events/aircraftallocation.
  2. Copy and edit the example below into Notepad/Editor as the example following. Remember to update event time, created time, and origin date to current date and time.

    {
        "event-type": "AIRCRAFT_ALLOCATION_EVENT",
        "event-time": " 2999-03-05T08:12:00.611Z",
        "location": "S3",
        "source": "ADH",
        "identifier": {
            "carrier": "EK",
            "flight-number": 99,
            "operational-suffix": "01",
            "origin-date": "2999-03-05",
            "origin-iata-code": "DXB",
            "destination-iata-code": "FRA"
        },
        "secondary-identifiers": [
            {
                "identifier": "ADH_TUTORIAL",
                "created": "2999-03-05T08:12:00.612Z",
                "source": "ADH"
            }
        ],
        "aircraft-type": "A380-800",
        "aircraft-registration": "A6-EDA"
    }
    
  3. Call GET /flightlegs and execute again with the same parameter.

  4. In the response body, you should find the same flight leg with additional aircraft information; the state should remain cancelled, however.

Create flight scheduled event¶

  1. Check on POST /flightlegs/events/scheduled.
  2. Copy and edit the example value below into Notepad/ Editor as the example following. Remember to update event time, created time, and origin date to current date and time.

    {
        "event-type": "FLIGHT_SCHEDULED_EVENT",
        "event-time": "2999-03-05T08:43:23.285Z",
        "location": "S3",
        "source": "ADH",
        "identifier": {
            "carrier": "EK",
            "flight-number": 99,
            "operational-suffix": "01",
            "origin-date": "2999-03-05",
            "origin-iata-code": "DXB",
            "destination-iata-code": "FRA"
        },
        "secondary-identifiers": [
            {
                "identifier": "ADH_TUTORIAL",
                "created": "2999-03-05T08:12:00.612Z",
                "source": "ADH"
            }
        ], 
        "codeshares": [ 
            {
                "carrier": "EK",
                "flight-number": 99,
                "operational-suffix": "01",
                "origin-date": "2999-03-05",
                "origin-iata-code": "DXB",
                "destination-iata-code": "FRA"
            }
        ], 
        "flight-segments": [
            {
                "identifier": {
                    "carrier": "EK",
                    "flight-number": 99,
                    "operational-suffix": "01",
                    "origin-date": "2999-03-05",
                    "origin-iata-code": "DXB",
                    "destination-iata-code": "FRA"
                },
                "secondary-identifiers": [
                    {
                        "identifier": "ADH_TUTORIAL",
                        "created": "2999-03-05T08:12:00.612Z",
                        "source": "ADH"
                    }
                ], 
                "is-international": true
            }
        ], 
        "sobt": "2999-03-05T08:43:23.285Z",
        "sibt": "2999-03-05T08:43:23.285Z",
        "aircraft-type": "A380-800",
        "is-international": true,
        "aircraft-registration": "A6-EDA"
    }
    
  3. Go back to GET /flightlegs and execute the same parameter again.

  4. In the response body, you should find the same flight leg with additional aircraft information; the state should remain cancelled, however.