added

New Endpoints: Sanction List and VISA Statuses for Crew and Pax

Dear Developers,

We are pleased to introduce new endpoints to accompany the release of the New Visual Indicators for Sanction List and VISA Checks. These endpoints enable you to interact with these new additions to the UI, providing users of the Dispatch module with valuable information regarding the crew and passengers for a flight. The sanction list status, and/or the VISA status can be updated for each crew member or passenger, optionally accompanied by a note to be displayed in the tooltip when hovering over the relevant status indicator for that person.

Endpoints Added

  • /api/external/flight/{flightId}/sanction-list
    Method(s): GET, PUT
  • /api/external/flight/{flightId}/visa
    Method(s): GET, PUT

Usage Guidelines

  1. Determine the relevant flightId (e.g. via GET /api/external/flight/flights).
  2. GET the sanction-list or visa information for the given flightId.
  3. Use the response as the basis for your PUT payload.
  4. Modify the payload as needed to incorporate your updated "status" and (optionally) update the "note" to display as tooltip text for that person's status.
  5. PUT the payload back at the same flightId to effect updates.

Payload

FlightStatusableDetails Model

The payload for these methods is a JSON object that includes two arrays of UserOnFlightStatusableDetails objects -- one array for the crew, and one for the pax:

{ "crew" : [ UserOnFlightStatusableDetails ], "passengers" : [ UserOnFlightStatusableDetails ] }

UserOnFlightStatusableDetails Model

For each crew or pax, there will be a UserOnFlightStatusableDetails object following the model:

{ "id": integer, "note": string, "source": string, "status": string }

Fields:

  1. id The internal id of the user (crew member or pax) with whom this status is associated.
  2. note The text to be displayed when this person's indicator is hovered over to display a tooltip.
  3. source Automatically updated by the backend, depending on the origin of the request.
    1. Enum Values: [ WEB, API ]
      1. For external API consumers, this will be set to "API".
      2. If the status was updated by the operator, this will be set to "WEB".
  4. status This value corresponds to the colored dot indicator of this pax or crew member, for the relevant status column in the UI (sanction list "SL", or visa "VISA", depending on the endpoint called).
    1. Enum Values: [ GRAY, GREEN, RED, YELLOW, LIGHT_RED, BLACK, WHITE, COLORLESS, MAINT_COLOR, BLUE, PURPLE ] )
    2. Currently, the only values in use & honored by the UI are: GRAY, GREEN, RED, and YELLOW

Specification

The full definitions for these endpoints, the models used, and example values for payloads can be found within the group /api/external/flights on the OpenAPI Specification page (SWAGGER UI). If you encounter any challenges or have questions, contact us at [email protected].

Best regards,
FL3XX API Team