POST api/v1/flighttypes
Inserts the specified flight type details.
Request Information
URI Parameters
None.
Body Parameters
The flight type details.
FlightTypeDetails| Name | 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": "79697860-a2d9-4adf-943c-7fefa0d8c27d",
"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": "79697860-a2d9-4adf-943c-7fefa0d8c27d",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"FlightTypeId":"79697860-a2d9-4adf-943c-7fefa0d8c27d","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":"79697860-a2d9-4adf-943c-7fefa0d8c27d","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">79697860-a2d9-4adf-943c-7fefa0d8c27d</Id> <FlightCode>sample string 2</FlightCode> <FlightTypeId>79697860-a2d9-4adf-943c-7fefa0d8c27d</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:
Response Information
Resource Description
FlightTypeDetails| Name | 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": "f1ea5ebc-bcbd-47e4-a15f-0b519c9a4d1c",
"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": "f1ea5ebc-bcbd-47e4-a15f-0b519c9a4d1c",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"FlightTypeId":"f1ea5ebc-bcbd-47e4-a15f-0b519c9a4d1c","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":"f1ea5ebc-bcbd-47e4-a15f-0b519c9a4d1c","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">f1ea5ebc-bcbd-47e4-a15f-0b519c9a4d1c</Id> <FlightCode>sample string 2</FlightCode> <FlightTypeId>f1ea5ebc-bcbd-47e4-a15f-0b519c9a4d1c</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>