POST FlightSchedule/Save

Request Information

URI Parameters

None.

Body Parameters

Collection of FlightScheduleModel
NameDescriptionTypeAdditional information
Id

integer

None.

FlightNumber

string

Required

MktFlightNumber

string

None.

ArrivalTime

string

Required

DepartureTime

string

Required

FlightDate

date

Required

DestinationAirport

string

Required

DepartureAirport

string

Required

FlightGroup

string

Required

SeatPlanName

string

Required

OperateEquipment

string

Required

PaxCount

integer

Required

FlightFareCode

string

None.

SavedStatus

boolean

None.

AirlineId

integer

None.

ReasonPhrase

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 0,
  "FlightNumber": "VL001",
  "MktFlightNumber": "",
  "ArrivalTime": "8:30am",
  "DepartureTime": "9:30am",
  "FlightDate": "2026-01-09T03:58:56.0310744+00:00",
  "DestinationAirport": "LOS",
  "DepartureAirport": "ABV",
  "FlightGroup": "",
  "SeatPlanName": "",
  "OperateEquipment": "Deedee Fly",
  "PaxCount": 20,
  "FlightFareCode": "",
  "SavedStatus": true,
  "AirlineId": 14,
  "ReasonPhrase": ""
}

application/xml, text/xml

Sample:
<?xml version="1.0" encoding="utf-16"?>
<xml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <zfltresponse>
    <result>OK</result>
    <flightcount>43</flightcount>
    <information>
      <flights>
        <flight fltid="1" flight="VL001" flightdate="20-FEB-2016" fltgroup="20Feb2016VL001" equipment="Deedee Fly" seatplanname="XX" operatingfltno="" marketingfltno="" marketingfltno2="" marketingfltno3="" marketingfltno4="" marketingfltno5="" flightfarecode="G" arrivetime="8:00am" depart="LOS" arrive="ABV" departtime="10:00am" NoPax="20" />
        <flight fltid="1" flight="VL001" flightdate="20-FEB-2016" fltgroup="20Feb2016VL001" equipment="Deedee Fly" seatplanname="XX" operatingfltno="" marketingfltno="" marketingfltno2="" marketingfltno3="" marketingfltno4="" marketingfltno5="" flightfarecode="G" arrivetime="8:00am" depart="LOS" arrive="ABV" departtime="10:00am" NoPax="20" />
      </flights>
    </information>
  </zfltresponse>
</xml>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json

Sample:
Saved or Updated

text/json

Sample:
{
  "Status": "Failed",
  "ErrorMessages": [
    "All errors recorded here"
  ]
}