POST api/v1/flighttypes
Request Information
URI Parameters
None.
Body Parameters
FlightTypeDetailsName | Description | Type | Additional information |
---|---|---|---|
FlightTypeId | globally unique identifier |
None. |
|
FlightCode | string |
String length: inclusive between 0 and 30 |
|
FlightTypeName | string |
Required String length: inclusive between 0 and 100 |
|
InstructorRequired | boolean |
None. |
|
ObserverPilotOrInstructorRequired | boolean |
None. |
|
IsCheckFlight | boolean |
None. |
|
IsPassengerFlight | boolean |
None. |
|
IsForGliderFlights | boolean |
None. |
|
IsForTowFlights | boolean |
None. |
|
IsForMotorFlights | boolean |
None. |
|
IsFlightCostBalanceSelectable | boolean |
None. |
|
IsSoloFlight | boolean |
None. |
|
IsCouponNumberRequired | boolean |
None. |
|
MinNrOfAircraftSeatsRequired | integer |
None. |
|
Id | globally unique identifier |
None. |
|
CanUpdateRecord | boolean |
None. |
|
CanDeleteRecord | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "FlightTypeId": "538d4765-6d35-4045-b354-f64f2e096a87", "FlightCode": "sample string 2", "FlightTypeName": "sample string 3", "InstructorRequired": true, "ObserverPilotOrInstructorRequired": true, "IsCheckFlight": true, "IsPassengerFlight": true, "IsForGliderFlights": true, "IsForTowFlights": true, "IsForMotorFlights": true, "IsFlightCostBalanceSelectable": true, "IsSoloFlight": true, "IsCouponNumberRequired": true, "MinNrOfAircraftSeatsRequired": 14, "Id": "538d4765-6d35-4045-b354-f64f2e096a87", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"FlightTypeId":"538d4765-6d35-4045-b354-f64f2e096a87","FlightCode":"sample string 2","FlightTypeName":"sample string 3","InstructorRequired":true,"ObserverPilotOrInstructorRequired":true,"IsCheckFlight":true,"IsPassengerFlight":true,"IsForGliderFlights":true,"IsForTowFlights":true,"IsForMotorFlights":true,"IsFlightCostBalanceSelectable":true,"IsSoloFlight":true,"IsCouponNumberRequired":true,"MinNrOfAircraftSeatsRequired":14,"Id":"538d4765-6d35-4045-b354-f64f2e096a87","CanUpdateRecord":true,"CanDeleteRecord":true}
application/xml, text/xml
Sample:
<FlightTypeDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Club"> <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord> <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord> <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">538d4765-6d35-4045-b354-f64f2e096a87</Id> <FlightCode>sample string 2</FlightCode> <FlightTypeId>538d4765-6d35-4045-b354-f64f2e096a87</FlightTypeId> <FlightTypeName>sample string 3</FlightTypeName> <InstructorRequired>true</InstructorRequired> <IsCheckFlight>true</IsCheckFlight> <IsCouponNumberRequired>true</IsCouponNumberRequired> <IsFlightCostBalanceSelectable>true</IsFlightCostBalanceSelectable> <IsForGliderFlights>true</IsForGliderFlights> <IsForMotorFlights>true</IsForMotorFlights> <IsForTowFlights>true</IsForTowFlights> <IsPassengerFlight>true</IsPassengerFlight> <IsSoloFlight>true</IsSoloFlight> <MinNrOfAircraftSeatsRequired>14</MinNrOfAircraftSeatsRequired> <ObserverPilotOrInstructorRequired>true</ObserverPilotOrInstructorRequired> </FlightTypeDetails>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
FlightTypeDetailsName | Description | Type | Additional information |
---|---|---|---|
FlightTypeId | globally unique identifier |
None. |
|
FlightCode | string |
String length: inclusive between 0 and 30 |
|
FlightTypeName | string |
Required String length: inclusive between 0 and 100 |
|
InstructorRequired | boolean |
None. |
|
ObserverPilotOrInstructorRequired | boolean |
None. |
|
IsCheckFlight | boolean |
None. |
|
IsPassengerFlight | boolean |
None. |
|
IsForGliderFlights | boolean |
None. |
|
IsForTowFlights | boolean |
None. |
|
IsForMotorFlights | boolean |
None. |
|
IsFlightCostBalanceSelectable | boolean |
None. |
|
IsSoloFlight | boolean |
None. |
|
IsCouponNumberRequired | boolean |
None. |
|
MinNrOfAircraftSeatsRequired | integer |
None. |
|
Id | globally unique identifier |
None. |
|
CanUpdateRecord | boolean |
None. |
|
CanDeleteRecord | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "FlightTypeId": "7d7d7acd-5429-4407-9b57-bdad8a482c21", "FlightCode": "sample string 2", "FlightTypeName": "sample string 3", "InstructorRequired": true, "ObserverPilotOrInstructorRequired": true, "IsCheckFlight": true, "IsPassengerFlight": true, "IsForGliderFlights": true, "IsForTowFlights": true, "IsForMotorFlights": true, "IsFlightCostBalanceSelectable": true, "IsSoloFlight": true, "IsCouponNumberRequired": true, "MinNrOfAircraftSeatsRequired": 14, "Id": "7d7d7acd-5429-4407-9b57-bdad8a482c21", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"FlightTypeId":"7d7d7acd-5429-4407-9b57-bdad8a482c21","FlightCode":"sample string 2","FlightTypeName":"sample string 3","InstructorRequired":true,"ObserverPilotOrInstructorRequired":true,"IsCheckFlight":true,"IsPassengerFlight":true,"IsForGliderFlights":true,"IsForTowFlights":true,"IsForMotorFlights":true,"IsFlightCostBalanceSelectable":true,"IsSoloFlight":true,"IsCouponNumberRequired":true,"MinNrOfAircraftSeatsRequired":14,"Id":"7d7d7acd-5429-4407-9b57-bdad8a482c21","CanUpdateRecord":true,"CanDeleteRecord":true}
application/xml, text/xml
Sample:
<FlightTypeDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Club"> <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord> <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord> <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">7d7d7acd-5429-4407-9b57-bdad8a482c21</Id> <FlightCode>sample string 2</FlightCode> <FlightTypeId>7d7d7acd-5429-4407-9b57-bdad8a482c21</FlightTypeId> <FlightTypeName>sample string 3</FlightTypeName> <InstructorRequired>true</InstructorRequired> <IsCheckFlight>true</IsCheckFlight> <IsCouponNumberRequired>true</IsCouponNumberRequired> <IsFlightCostBalanceSelectable>true</IsFlightCostBalanceSelectable> <IsForGliderFlights>true</IsForGliderFlights> <IsForMotorFlights>true</IsForMotorFlights> <IsForTowFlights>true</IsForTowFlights> <IsPassengerFlight>true</IsPassengerFlight> <IsSoloFlight>true</IsSoloFlight> <MinNrOfAircraftSeatsRequired>14</MinNrOfAircraftSeatsRequired> <ObserverPilotOrInstructorRequired>true</ObserverPilotOrInstructorRequired> </FlightTypeDetails>