POST api/v1/aircraftreservations

Request Information

URI Parameters

None.

Body Parameters

AircraftReservationDetails
NameDescriptionTypeAdditional information
AircraftReservationId

globally unique identifier

None.

Start

date

Required

End

date

Required

IsAllDayReservation

boolean

Required

AircraftId

globally unique identifier

Required

PilotPersonId

globally unique identifier

Required

LocationId

globally unique identifier

Required

SecondCrewPersonId

globally unique identifier

None.

ReservationTypeId

globally unique identifier

Required

Remarks

string

None.

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "AircraftReservationId": "994125eb-1e3f-428c-b204-8fe5bc4b1d32",
  "Start": "2019-12-11T21:08:17.3989637+01:00",
  "End": "2019-12-11T21:08:17.3989637+01:00",
  "IsAllDayReservation": true,
  "AircraftId": "729a72df-0ef5-45e0-a1c0-714a763545e0",
  "PilotPersonId": "495411af-ae22-4f81-9c83-2f39365e91c9",
  "LocationId": "53a9f191-2c8d-4afc-a2c8-e225d172b4a0",
  "SecondCrewPersonId": "ca821680-b72d-4619-8619-e6f1f71b8a73",
  "ReservationTypeId": "c007f9ff-461d-490a-8f88-ea8c4bb52f68",
  "Remarks": "sample string 9",
  "Id": "994125eb-1e3f-428c-b204-8fe5bc4b1d32",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"AircraftReservationId":"994125eb-1e3f-428c-b204-8fe5bc4b1d32","Start":"2019-12-11T21:08:17.3989637+01:00","End":"2019-12-11T21:08:17.3989637+01:00","IsAllDayReservation":true,"AircraftId":"729a72df-0ef5-45e0-a1c0-714a763545e0","PilotPersonId":"495411af-ae22-4f81-9c83-2f39365e91c9","LocationId":"53a9f191-2c8d-4afc-a2c8-e225d172b4a0","SecondCrewPersonId":"ca821680-b72d-4619-8619-e6f1f71b8a73","ReservationTypeId":"c007f9ff-461d-490a-8f88-ea8c4bb52f68","Remarks":"sample string 9","Id":"994125eb-1e3f-428c-b204-8fe5bc4b1d32","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<AircraftReservationDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.AircraftReservation">
  <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">994125eb-1e3f-428c-b204-8fe5bc4b1d32</Id>
  <AircraftId>729a72df-0ef5-45e0-a1c0-714a763545e0</AircraftId>
  <AircraftReservationId>994125eb-1e3f-428c-b204-8fe5bc4b1d32</AircraftReservationId>
  <End>2019-12-11T21:08:17.3989637+01:00</End>
  <IsAllDayReservation>true</IsAllDayReservation>
  <LocationId>53a9f191-2c8d-4afc-a2c8-e225d172b4a0</LocationId>
  <PilotPersonId>495411af-ae22-4f81-9c83-2f39365e91c9</PilotPersonId>
  <Remarks>sample string 9</Remarks>
  <ReservationTypeId>c007f9ff-461d-490a-8f88-ea8c4bb52f68</ReservationTypeId>
  <SecondCrewPersonId>ca821680-b72d-4619-8619-e6f1f71b8a73</SecondCrewPersonId>
  <Start>2019-12-11T21:08:17.3989637+01:00</Start>
</AircraftReservationDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AircraftReservationDetails
NameDescriptionTypeAdditional information
AircraftReservationId

globally unique identifier

None.

Start

date

Required

End

date

Required

IsAllDayReservation

boolean

Required

AircraftId

globally unique identifier

Required

PilotPersonId

globally unique identifier

Required

LocationId

globally unique identifier

Required

SecondCrewPersonId

globally unique identifier

None.

ReservationTypeId

globally unique identifier

Required

Remarks

string

None.

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "AircraftReservationId": "df15812b-7cc4-4204-a8b5-faf88864d514",
  "Start": "2019-12-11T21:08:17.4145822+01:00",
  "End": "2019-12-11T21:08:17.4145822+01:00",
  "IsAllDayReservation": true,
  "AircraftId": "2687678d-c1c7-4684-ae31-0eb0d6772d65",
  "PilotPersonId": "e199e416-2059-4267-beee-691bb725465b",
  "LocationId": "247b04ab-00de-48cc-a359-4a9fe4818c20",
  "SecondCrewPersonId": "75070561-8243-4bbb-a362-2080396aae76",
  "ReservationTypeId": "c9d32c11-e8e6-4b6a-b576-fc8df352c5cf",
  "Remarks": "sample string 9",
  "Id": "df15812b-7cc4-4204-a8b5-faf88864d514",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"AircraftReservationId":"df15812b-7cc4-4204-a8b5-faf88864d514","Start":"2019-12-11T21:08:17.4145822+01:00","End":"2019-12-11T21:08:17.4145822+01:00","IsAllDayReservation":true,"AircraftId":"2687678d-c1c7-4684-ae31-0eb0d6772d65","PilotPersonId":"e199e416-2059-4267-beee-691bb725465b","LocationId":"247b04ab-00de-48cc-a359-4a9fe4818c20","SecondCrewPersonId":"75070561-8243-4bbb-a362-2080396aae76","ReservationTypeId":"c9d32c11-e8e6-4b6a-b576-fc8df352c5cf","Remarks":"sample string 9","Id":"df15812b-7cc4-4204-a8b5-faf88864d514","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<AircraftReservationDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.AircraftReservation">
  <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">df15812b-7cc4-4204-a8b5-faf88864d514</Id>
  <AircraftId>2687678d-c1c7-4684-ae31-0eb0d6772d65</AircraftId>
  <AircraftReservationId>df15812b-7cc4-4204-a8b5-faf88864d514</AircraftReservationId>
  <End>2019-12-11T21:08:17.4145822+01:00</End>
  <IsAllDayReservation>true</IsAllDayReservation>
  <LocationId>247b04ab-00de-48cc-a359-4a9fe4818c20</LocationId>
  <PilotPersonId>e199e416-2059-4267-beee-691bb725465b</PilotPersonId>
  <Remarks>sample string 9</Remarks>
  <ReservationTypeId>c9d32c11-e8e6-4b6a-b576-fc8df352c5cf</ReservationTypeId>
  <SecondCrewPersonId>75070561-8243-4bbb-a362-2080396aae76</SecondCrewPersonId>
  <Start>2019-12-11T21:08:17.4145822+01:00</Start>
</AircraftReservationDetails>