OBJECT

Mutation

Represents all mutations exposed by Leon API

link GraphQL Schema definition

  • type Mutation {
  • # Requires access to given aircraft
  • #
  • # Arguments
  • # acftNid: Aircraft numeric identifier
  • # aircraft: [Not documented]
  • updateAircraft(
  • acftNid: Int!,
  • aircraft: AircraftUpdate!
  • ): NonNullAircraftValueOrErrorList! @deprecated( reason: "Use 'updateAircraft' in 'aircraft' node instead" )
  • # Requires access to resource GRAPHQL_ACFT_EDIT
  • #
  • # Arguments
  • # aircraft: [Not documented]
  • createAircraft(
  • aircraft: AircraftCreate!
  • ): NonNullAircraftValueOrErrorList! @deprecated( reason: "Use 'createAircraft' in 'aircraft' node instead" )
  • # Requires access to resource GRAPHQL_SIMULATOR_EDIT
  • simulator: SimulatorMutation
  • # Requires access to resource GRAPHQL_CREW_PANEL
  • crewPanel: CrewPanelMutation!
  • # Return token.
  • # Requires access to resource GRAPHQL_API_KEYS
  • #
  • # Arguments
  • # apiKey: [Not documented]
  • # aircraftList: [Not documented]
  • createApiKey(apiKey: ApiKeyCreate!, aircraftList: [AircraftNid!]): String!
  • # Requires access to resource GRAPHQL_API_KEYS
  • #
  • # Arguments
  • # apiKeyNid: API key numeric identifier
  • deleteApiKey(apiKeyNid: Int!): Boolean!
  • # Requires access to resource GRAPHQL_API_KEYS
  • #
  • # Arguments
  • # apiKey: [Not documented]
  • # aircraftList: [Not documented]
  • modifyApiKey(apiKey: ApiKeyUpdate!, aircraftList: [AircraftNid]): ApiKey!
  • # Requires access to resource GRAPHQL_CONTACT
  • eapis: EapisModify!
  • # Create trip with specified flights.
  • # Requires access to resource GRAPHQL_FLIGHT_EDIT.
  • # Requires access to resource GRAPHQL_FLIGHT
  • #
  • # Arguments
  • # trip: [Not documented]
  • createTrip(trip: TripCreate!): Trip!
  • # Update trip with specified flights.
  • # Requires access to resource GRAPHQL_FLIGHT_EDIT.
  • # Requires access to resource GRAPHQL_FLIGHT
  • #
  • # Arguments
  • # tripNid: [Not documented]
  • # trip: [Not documented]
  • updateTrip(tripNid: TripNid!, trip: TripUpdate!): Trip!
  • # Requires access to resource GRAPHQL_FLIGHT_EDIT
  • #
  • # Arguments
  • # tripNid: [Not documented]
  • deleteTrip(tripNid: TripNid!): Boolean!
  • # Requires access to resource GRAPHQL_FLIGHT_EDIT
  • #
  • # Arguments
  • # tripNid: [Not documented]
  • # files: [Not documented]
  • uploadTripFile(tripNid: TripNid!, files: [Upload!]!): [File!]!
  • # Create flight and assign to trip with specified tripNid.
  • # Requires access to resource GRAPHQL_FLIGHT_EDIT.
  • # Requires access to resource GRAPHQL_FLIGHT.
  • # Requires access to given flight
  • #
  • # Arguments
  • # tripNid: [Not documented]
  • # flight: [Not documented]
  • flightCreate(tripNid: TripNid!, flight: FlightCreate!): Flight!
  • # Update flight with specified flightNid.
  • # Requires access to resource GRAPHQL_FLIGHT_EDIT.
  • # Requires access to resource GRAPHQL_FLIGHT.
  • # Requires access to given flight
  • #
  • # Arguments
  • # flightNid: [Not documented]
  • # flight: [Not documented]
  • flightUpdate(
  • flightNid: FlightNid!,
  • flight: FlightUpdate!
  • ): Flight! @deprecated( reason: "use flights.flightListUpdate mutation" )
  • # Cancel or delete flight (accordingly to operator settings).
  • # Requires access to resource GRAPHQL_FLIGHT_EDIT.
  • # Requires access to given flight
  • #
  • # Arguments
  • # flightNid: [Not documented]
  • flightDelete(flightNid: FlightNid!): Boolean!
  • # Requires access to resource GRAPHQL_FLIGHT_EDIT
  • flights: FlightMutationQuery!
  • # Requires access to resource GRAPHQL_FLIGHT_EDIT
  • #
  • # Arguments
  • # flightNid: [Not documented]
  • restoreFlights(flightNid: FlightNid!): Boolean!
  • # Requires access to resource GRAPHQL_POSITIONING_EDIT.
  • # Requires access to resource GRAPHQL_POSITIONING_SEE.
  • # Requires access to given positioning
  • #
  • # Arguments
  • # positioningNid: Positioning numeric identifier
  • # positioning: [Not documented]
  • positioningUpdate(
  • positioningNid: Int!,
  • positioning: PositioningUpdate!
  • ): Positioning! @deprecated( reason: "Please use positioning -> update instead " )
  • positioning: PositioningMutation!
  • # Requires access to resource GRAPHQL_SCHEDULE_ORDER_EDIT
  • schedule: ScheduleMutation!
  • # Requires access to resource GRAPHQL_SALES_QUOTE_EDIT
  • #
  • # Arguments
  • # quoteInvoice: [Not documented]
  • # selectedLegNidList: [Not documented]
  • # quoteRealizationNid: [Not documented]
  • updateQuoteInvoice(
  • quoteInvoice: QuoteInvoiceInput!,
  • selectedLegNidList: [Int],
  • quoteRealizationNid: QuoteRealizationNid
  • ): QuoteRealizationInvoice!
  • # Requires access to resource GRAPHQL_SALES_QUOTE_EDIT
  • #
  • # Arguments
  • # invoiceNid:
  • # Possible violation list: IS_NOT_SOME_ERROR
  • # isPaid:
  • updateQuoteInvoiceIsPaid(
  • invoiceNid: QuoteInvoiceNidScalar!,
  • isPaid: Boolean!
  • ): QuoteRealizationInvoice! @deprecated( reason: "use updateInvoiceIsPaid" )
  • # Requires access to resource GRAPHQL_SALES_QUOTE_EDIT
  • #
  • # Arguments
  • # invoiceNid:
  • # Possible violation list: IS_NOT_SOME_ERROR
  • # isPaid:
  • updateInvoiceIsPaid(
  • invoiceNid: QuoteInvoiceNidScalar!,
  • isPaid: Boolean!
  • ): UpdateInvoiceIsPaidOutput!
  • # Requires access to resource GRAPHQL_SALES_QUOTE_EDIT
  • #
  • # Arguments
  • # quoteRequestNid: [Not documented]
  • # quoteInvoice: [Not documented]
  • # selectedLegNidList: [Not documented]
  • # quoteRealizationNid: [Not documented]
  • createQuoteInvoiceByQuoteRequest(
  • quoteRequestNid: QuoteRequestNid!,
  • quoteInvoice: QuoteInvoiceInput!,
  • selectedLegNidList: [Int],
  • quoteRealizationNid: QuoteRealizationNid!
  • ): QuoteRealizationInvoice!
  • # Requires access to resource GRAPHQL_SALES_QUOTE_EDIT
  • #
  • # Arguments
  • # quoteNid: [Not documented]
  • # quoteInvoice: [Not documented]
  • createQuoteInvoice(
  • quoteNid: QuoteRealizationNid!,
  • quoteInvoice: QuoteInvoiceInput!
  • ): QuoteRealizationInvoice!
  • # Arguments
  • # quoteOperatorSettings: [Not documented]
  • setQuoteOperatorSettings(
  • quoteOperatorSettings: QuoteOperatorSettingsInput!
  • ): ApiQuoteOperatorSettings!
  • # Requires access to resource GRAPHQL_PASSENGER.
  • # Requires access to given flight
  • #
  • # Arguments
  • # flightNid: [Not documented]
  • # file: [Not documented]
  • importPaxFromExcel(
  • flightNid: FlightNid!,
  • file: FileInput!
  • ): PassengerList! @deprecated( reason: "Please use passengerList->importPaxFromExcel instead" )
  • # Requires access to resource GRAPHQL_PASSENGER_EDIT.
  • # Requires access to resource GRAPHQL_PASSENGER.
  • # Requires access to given flight
  • #
  • # Arguments
  • # flightNid: [Not documented]
  • # passengerContactList: [Not documented]
  • # leadPassenger: [Not documented]
  • savePassengerList(
  • flightNid: FlightNid!,
  • passengerContactList: [PassengerContactInput],
  • leadPassenger: ContactNid
  • ): PassengerList! @deprecated( reason: "Please use passengerList->savePassengerList instead" )
  • # Requires access to resource GRAPHQL_PASSENGER_EDIT.
  • # Requires access to resource GRAPHQL_PASSENGER.
  • # Requires access to given flight
  • #
  • # Arguments
  • # flightNid: [Not documented]
  • # passengerContactList: [Not documented]
  • # leadPassenger: [Not documented]
  • addPassengersToList(
  • flightNid: FlightNid!,
  • passengerContactList: [PassengerContactInput],
  • leadPassenger: ContactNid
  • ): PassengerList! @deprecated( reason: "Please use passengerList->addPassengersToList instead" )
  • # Requires access to resource GRAPHQL_PASSENGER_EDIT.
  • # Requires access to resource GRAPHQL_PASSENGER.
  • # Requires access to given flight
  • #
  • # Arguments
  • # flightNid: [Not documented]
  • # passengerText: [Not documented]
  • savePassengerText(
  • flightNid: FlightNid!,
  • passengerText: PassengerTextInput!
  • ): PassengerList! @deprecated( reason: "Please use passengerList->savePassengerText instead" )
  • # Requires access to resource GRAPHQL_PASSENGER_EDIT.
  • # Requires access to resource GRAPHQL_PASSENGER
  • #
  • # Arguments
  • # flightNid:
  • # passengerContactList:
  • removePassengersFromList(
  • flightNid: FlightNid!,
  • passengerContactList: [ContactNid]
  • ): PassengerList! @deprecated( reason: "Please use passengerList->removePassengersFromList instead" )
  • # Requires access to resource GRAPHQL_PASSENGER_EDIT.
  • # Requires access to resource GRAPHQL_PASSENGER
  • #
  • # Arguments
  • # flightNid:
  • clearPassengersFromList(
  • flightNid: FlightNid!
  • ): PassengerList! @deprecated( reason: "Please use passengerList->clearPassengersFromList instead" )
  • passengerList: PassengerListMutation!
  • passengerForTravelDocuments: PassengerForTravelDocumentsMutation!
  • # Requires access to resource GRAPHQL_JOURNEY_LOG_EDIT
  • journeyLog: JourneyLogMutation
  • # Requires access to resource GRAPHQL_SALES_BOOKINGS
  • #
  • # Arguments
  • # selectedAircraftList: [Not documented]
  • # isAllAircraftSelected: [Not documented]
  • # sortBy: [Not documented]
  • # aircraftStatus: [Not documented]
  • # filterBy: [Not documented]
  • # operatorBaseNid: [Not documented]
  • # presetNid: [Not documented]
  • aircraftFilter(
  • selectedAircraftList: [AircraftNid!]!,
  • isAllAircraftSelected: Boolean!,
  • sortBy: AircraftFilterSortByType!,
  • aircraftStatus: AircraftFilterStatusType!,
  • filterBy: String,
  • operatorBaseNid: BaseNid,
  • presetNid: FilterPresetNid
  • ): Boolean!
  • # Requires access to resource GRAPHQL_RESERVATION_EDIT
  • reservation: ReservationMutation!
  • maintenance: MaintenanceMutation!
  • # Requires access to resource GRAPHQL_FLIGHT_WATCH_EDIT
  • flightWatch: FlightWatchMutation!
  • sales: SalesMutation!
  • ownerApp: OwnerAppMutation!
  • salesApp: SalesAppMutation!
  • template: TemplateMutation!
  • checklist: ChecklistMutation!
  • # **FEATURE UNDER DEVELOPMENT**
  • #
  • # Will send text to clients subscribed to echo subscription.
  • #
  • # Arguments
  • # text: Text to send to subscribed clients
  • echoSubscription(text: String!): Boolean!
  • accessToken: AccessTokenMutation!
  • phonebook: PhonebookMutation!
  • # Requires access to resource GRAPHQL_CONTACT_EDIT
  • contact: ContactMutation!
  • iataMessages: IataMessagesMutation!
  • # Requires access to resource GRAPHQL_AIRPORT
  • airport: AirportMutation!
  • # Requires access to resource FUEL_EDIT
  • fuel: FuelMutation!
  • # Requires access to resource MAILBOX_CONFIG_EDIT
  • mailboxConfig: MailboxConfigMutationSection!
  • # Requires access to resource INTERACTIVE_API_EDIT
  • interactiveAPI: InteractiveAPIMutation!
  • countryDirectory: CountryDirectoryMutation!
  • multiLeg: MultiLegMutation!
  • crewMember: CrewMemberMutationSection!
  • # Requires access to resource GRAPHQL_FLIGHT_PERMITS_EDIT
  • flightPermits: FlightPermitMutation!
  • ownerBoard: OwnerBoardMutation!
  • travelDocuments: TravelDocumentsMutation!
  • # Requires access to resource GRAPHQL_AIRCRAFT_INSURANCE_EDIT
  • aircraftInsurance: AircraftInsuranceMutation!
  • # Restricted access only for Leon employees
  • pricingManager: PricingManagerMutation!
  • # Requires access to resource GRAPHQL_SABRE_IMPORT
  • crewTravel: CrewTravelMutation!
  • # Requires access to resource GRAPHQL_DUTY_EDIT
  • duty: DutyMutation!
  • webhook: WebhookMutationSection
  • dutyAccount: DutyAccountMutation!
  • history: HistoryMutationSection!
  • FlightFuelPrices: FlightFuelPricesMutation!
  • airportPriceList: AirportPriceListMutationSection!
  • aircraftPriceList: AircraftPriceListMutationSection!
  • rosterize: RosterizeMutationSection!
  • leonAccountSettings: LeonAccountSettingsMutations!
  • # Requires access to resource EMAIL_TEMPLATE_EDIT
  • emailTemplate: EmailTemplateMutation!
  • # Requires access to resource CREW_MEMBER_EXTERNAL_ENDORSEMENT_EDIT
  • endorsement: EndorsementMutationSection!
  • documentManager: DocumentManagerMutationSection!
  • # Restricted access only for Leon Support dedicated user
  • featureToggles: FeatureTogglesMutation!
  • # Requires access to resource GRAPHQL_AIRPORT_DIRECTORY_EDIT
  • airportDirectory: AirportDirectoryMutation!
  • aircraft: AircraftMutation!
  • # Requires access to resource GRAPHQL_MX_FLEET_DOCS_EDIT
  • fleet: FleetMutation!
  • loggedUserMutation: LoggedUserMutation
  • # Requires access to resource GRAPHQL_FLIGHT_CUSTOMER_EDIT
  • flightCustomer: FlightCustomerMutation!
  • # Requires access to resource REPORT_WIZARD_EDIT
  • reportWizard: ReportWizardMutation!
  • integration: IntegrationMutation!
  • operator: OperatorMutation!
  • # Requires access to resource GRAPHQL_EXTERNAL_MARKETPLACE_EDIT
  • externalMarketplace: ExternalMarketplaceMutation!
  • # Requires access to resource GRAPHQL_FLEET_PLANNING_EDIT
  • fleetPlanning: FleetPlanningMutation!
  • }

link Require by

This element is not required by anyone