PUT api/v1/flights/changeprocessstate/{flightId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
flightId

globally unique identifier

Required

Body Parameters

FlightProcessRequest
NameDescriptionTypeAdditional information
FlightId

globally unique identifier

None.

NewFlightProcessState

FlightProcessState

None.

Request Formats

application/json, text/json

Sample:
{
  "FlightId": "4175986f-dc88-423e-9963-ea8adc04b6ab",
  "NewFlightProcessState": 0
}

text/html

Sample:
{"FlightId":"4175986f-dc88-423e-9963-ea8adc04b6ab","NewFlightProcessState":0}

application/xml, text/xml

Sample:
<FlightProcessRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Processing">
  <FlightId>4175986f-dc88-423e-9963-ea8adc04b6ab</FlightId>
  <NewFlightProcessState>NotProcessed</NewFlightProcessState>
</FlightProcessRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

FlightDetails
NameDescriptionTypeAdditional information
FlightId

globally unique identifier

None.

StartType

integer

None.

FlightDate

date

None.

GliderFlightDetailsData

GliderFlightDetailsData

None.

TowFlightDetailsData

TowFlightDetailsData

None.

MotorFlightDetailsData

MotorFlightDetailsData

None.

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "FlightId": "41c34884-102c-43be-b813-49c410eb081c",
  "StartType": 1,
  "FlightDate": "2019-10-24T04:43:58.9756582+02:00",
  "GliderFlightDetailsData": {
    "CouponNumber": "sample string 1",
    "WinchOperatorPersonId": "ea4f1a69-4d25-4c9a-9fe6-27b6536a90c0",
    "StartPosition": 1,
    "PassengerPersonId": "ac656519-0e92-4ed2-bf99-1d293fa88830",
    "FlightId": "b7562a91-af3c-48f5-9d3c-a76bf30907e8",
    "AircraftId": "daa44a6a-54cb-4081-a00d-42630ddcf8b4",
    "PilotPersonId": "8f5e1578-4a83-4ebd-a6d1-2052a5f057bc",
    "CoPilotPersonId": "fca5cd2e-a206-4405-a0a3-3f15f322162d",
    "InstructorPersonId": "ba114220-f8b8-450b-87f4-6aed3d50d7c8",
    "ObserverPersonId": "012f7e90-522a-44e0-bb51-af89cd0a80bd",
    "InvoiceRecipientPersonId": "305d032d-44d4-41f6-af58-576e04b2a249",
    "EngineStartOperatingCounterInSeconds": 1,
    "EngineEndOperatingCounterInSeconds": 1,
    "FlightComment": "sample string 4",
    "AirStateId": 5,
    "ProcessStateId": 6,
    "FlightTypeId": "8e478305-3166-4917-b939-c2b937129ca1",
    "LdgDateTime": "2019-10-24T04:43:58.9756582+02:00",
    "StartDateTime": "2019-10-24T04:43:58.9756582+02:00",
    "FlightDuration": "00:00:00.1234567",
    "StartLocationId": "bcdca7a1-04f0-4d8f-9c3d-1df8f897e776",
    "LdgLocationId": "a9f2ce34-8379-476d-bcf7-bfbebfbb531a",
    "FlightCostBalanceType": 1,
    "NrOfLdgs": 1,
    "IsSoloFlight": true,
    "OutboundRoute": "sample string 9",
    "InboundRoute": "sample string 10",
    "NoStartTimeInformation": true,
    "NoLdgTimeInformation": true,
    "ValidationErrors": "sample string 13",
    "Id": "b7562a91-af3c-48f5-9d3c-a76bf30907e8",
    "CanUpdateRecord": true,
    "CanDeleteRecord": true
  },
  "TowFlightDetailsData": {
    "FlightId": "5b57cd24-9b47-413a-aa66-5b7163ec5118",
    "AircraftId": "85ea9e63-2acb-47fe-a9e6-95b758c52806",
    "PilotPersonId": "d6553455-45cc-47e0-bcd5-74f46009145d",
    "CoPilotPersonId": "71fe76f2-0f1c-439c-bdb7-87e990ddd254",
    "InstructorPersonId": "d618754a-e825-4f44-91ac-d4f45e06ce58",
    "ObserverPersonId": "37bf08f4-48c7-447e-b15b-8c614079ad81",
    "InvoiceRecipientPersonId": "9fe68dbe-ce38-477e-b6b9-08a593297fc6",
    "EngineStartOperatingCounterInSeconds": 1,
    "EngineEndOperatingCounterInSeconds": 1,
    "FlightComment": "sample string 3",
    "AirStateId": 4,
    "ProcessStateId": 5,
    "FlightTypeId": "0729dc11-9d00-47cb-a1d0-aed446e6b67a",
    "LdgDateTime": "2019-10-24T04:43:58.9756582+02:00",
    "StartDateTime": "2019-10-24T04:43:58.9756582+02:00",
    "FlightDuration": "00:00:00.1234567",
    "StartLocationId": "c49d813b-dab1-43f5-b5f8-dba3f557aa2b",
    "LdgLocationId": "262ba0d5-5195-4ac7-ab6c-37e4671a3a73",
    "FlightCostBalanceType": 1,
    "NrOfLdgs": 1,
    "IsSoloFlight": true,
    "OutboundRoute": "sample string 8",
    "InboundRoute": "sample string 9",
    "NoStartTimeInformation": true,
    "NoLdgTimeInformation": true,
    "ValidationErrors": "sample string 12",
    "Id": "5b57cd24-9b47-413a-aa66-5b7163ec5118",
    "CanUpdateRecord": true,
    "CanDeleteRecord": true
  },
  "MotorFlightDetailsData": {
    "CouponNumber": "sample string 1",
    "BlockStartDateTime": "2019-10-24T04:43:58.9756582+02:00",
    "BlockEndDateTime": "2019-10-24T04:43:58.9756582+02:00",
    "PassengerPersonIds": [
      "55ad4bff-5736-463b-ab53-4c7ed603333c",
      "f4c15e15-adfe-4781-a3cf-149d381b5921"
    ],
    "NrOfPassengers": 1,
    "NrOfLdgsOnStartLocation": 1,
    "FlightId": "b5c91517-3744-4816-be6a-c61e834dded9",
    "AircraftId": "9c45caaf-890a-486f-babf-71f2a4079697",
    "PilotPersonId": "48314611-1d6e-43fb-a744-7a99cab909ed",
    "CoPilotPersonId": "29cdcd7c-b56c-490b-8cac-651ee1e3036f",
    "InstructorPersonId": "e6195db6-10a3-4640-bb22-8148d424e962",
    "ObserverPersonId": "dc2149cb-4c35-44b5-8474-d1c452819015",
    "InvoiceRecipientPersonId": "8eac86e4-ca14-4143-b845-129225e66620",
    "EngineStartOperatingCounterInSeconds": 1,
    "EngineEndOperatingCounterInSeconds": 1,
    "FlightComment": "sample string 4",
    "AirStateId": 5,
    "ProcessStateId": 6,
    "FlightTypeId": "62bc93dc-2b6a-474b-8c93-0f664f15d77a",
    "LdgDateTime": "2019-10-24T04:43:58.9756582+02:00",
    "StartDateTime": "2019-10-24T04:43:58.9756582+02:00",
    "FlightDuration": "00:00:00.1234567",
    "StartLocationId": "0d65c7e7-3473-4330-a850-3a3ec01c2e74",
    "LdgLocationId": "ce35a0f7-03e1-4dee-bd98-05aa12742464",
    "FlightCostBalanceType": 1,
    "NrOfLdgs": 1,
    "IsSoloFlight": true,
    "OutboundRoute": "sample string 9",
    "InboundRoute": "sample string 10",
    "NoStartTimeInformation": true,
    "NoLdgTimeInformation": true,
    "ValidationErrors": "sample string 13",
    "Id": "b5c91517-3744-4816-be6a-c61e834dded9",
    "CanUpdateRecord": true,
    "CanDeleteRecord": true
  },
  "Id": "41c34884-102c-43be-b813-49c410eb081c",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"FlightId":"41c34884-102c-43be-b813-49c410eb081c","StartType":1,"FlightDate":"2019-10-24T04:43:58.9756582+02:00","GliderFlightDetailsData":{"CouponNumber":"sample string 1","WinchOperatorPersonId":"ea4f1a69-4d25-4c9a-9fe6-27b6536a90c0","StartPosition":1,"PassengerPersonId":"ac656519-0e92-4ed2-bf99-1d293fa88830","FlightId":"b7562a91-af3c-48f5-9d3c-a76bf30907e8","AircraftId":"daa44a6a-54cb-4081-a00d-42630ddcf8b4","PilotPersonId":"8f5e1578-4a83-4ebd-a6d1-2052a5f057bc","CoPilotPersonId":"fca5cd2e-a206-4405-a0a3-3f15f322162d","InstructorPersonId":"ba114220-f8b8-450b-87f4-6aed3d50d7c8","ObserverPersonId":"012f7e90-522a-44e0-bb51-af89cd0a80bd","InvoiceRecipientPersonId":"305d032d-44d4-41f6-af58-576e04b2a249","EngineStartOperatingCounterInSeconds":1,"EngineEndOperatingCounterInSeconds":1,"FlightComment":"sample string 4","AirStateId":5,"ProcessStateId":6,"FlightTypeId":"8e478305-3166-4917-b939-c2b937129ca1","LdgDateTime":"2019-10-24T04:43:58.9756582+02:00","StartDateTime":"2019-10-24T04:43:58.9756582+02:00","FlightDuration":"00:00:00.1234567","StartLocationId":"bcdca7a1-04f0-4d8f-9c3d-1df8f897e776","LdgLocationId":"a9f2ce34-8379-476d-bcf7-bfbebfbb531a","FlightCostBalanceType":1,"NrOfLdgs":1,"IsSoloFlight":true,"OutboundRoute":"sample string 9","InboundRoute":"sample string 10","NoStartTimeInformation":true,"NoLdgTimeInformation":true,"ValidationErrors":"sample string 13","Id":"b7562a91-af3c-48f5-9d3c-a76bf30907e8","CanUpdateRecord":true,"CanDeleteRecord":true},"TowFlightDetailsData":{"FlightId":"5b57cd24-9b47-413a-aa66-5b7163ec5118","AircraftId":"85ea9e63-2acb-47fe-a9e6-95b758c52806","PilotPersonId":"d6553455-45cc-47e0-bcd5-74f46009145d","CoPilotPersonId":"71fe76f2-0f1c-439c-bdb7-87e990ddd254","InstructorPersonId":"d618754a-e825-4f44-91ac-d4f45e06ce58","ObserverPersonId":"37bf08f4-48c7-447e-b15b-8c614079ad81","InvoiceRecipientPersonId":"9fe68dbe-ce38-477e-b6b9-08a593297fc6","EngineStartOperatingCounterInSeconds":1,"EngineEndOperatingCounterInSeconds":1,"FlightComment":"sample string 3","AirStateId":4,"ProcessStateId":5,"FlightTypeId":"0729dc11-9d00-47cb-a1d0-aed446e6b67a","LdgDateTime":"2019-10-24T04:43:58.9756582+02:00","StartDateTime":"2019-10-24T04:43:58.9756582+02:00","FlightDuration":"00:00:00.1234567","StartLocationId":"c49d813b-dab1-43f5-b5f8-dba3f557aa2b","LdgLocationId":"262ba0d5-5195-4ac7-ab6c-37e4671a3a73","FlightCostBalanceType":1,"NrOfLdgs":1,"IsSoloFlight":true,"OutboundRoute":"sample string 8","InboundRoute":"sample string 9","NoStartTimeInformation":true,"NoLdgTimeInformation":true,"ValidationErrors":"sample string 12","Id":"5b57cd24-9b47-413a-aa66-5b7163ec5118","CanUpdateRecord":true,"CanDeleteRecord":true},"MotorFlightDetailsData":{"CouponNumber":"sample string 1","BlockStartDateTime":"2019-10-24T04:43:58.9756582+02:00","BlockEndDateTime":"2019-10-24T04:43:58.9756582+02:00","PassengerPersonIds":["55ad4bff-5736-463b-ab53-4c7ed603333c","f4c15e15-adfe-4781-a3cf-149d381b5921"],"NrOfPassengers":1,"NrOfLdgsOnStartLocation":1,"FlightId":"b5c91517-3744-4816-be6a-c61e834dded9","AircraftId":"9c45caaf-890a-486f-babf-71f2a4079697","PilotPersonId":"48314611-1d6e-43fb-a744-7a99cab909ed","CoPilotPersonId":"29cdcd7c-b56c-490b-8cac-651ee1e3036f","InstructorPersonId":"e6195db6-10a3-4640-bb22-8148d424e962","ObserverPersonId":"dc2149cb-4c35-44b5-8474-d1c452819015","InvoiceRecipientPersonId":"8eac86e4-ca14-4143-b845-129225e66620","EngineStartOperatingCounterInSeconds":1,"EngineEndOperatingCounterInSeconds":1,"FlightComment":"sample string 4","AirStateId":5,"ProcessStateId":6,"FlightTypeId":"62bc93dc-2b6a-474b-8c93-0f664f15d77a","LdgDateTime":"2019-10-24T04:43:58.9756582+02:00","StartDateTime":"2019-10-24T04:43:58.9756582+02:00","FlightDuration":"00:00:00.1234567","StartLocationId":"0d65c7e7-3473-4330-a850-3a3ec01c2e74","LdgLocationId":"ce35a0f7-03e1-4dee-bd98-05aa12742464","FlightCostBalanceType":1,"NrOfLdgs":1,"IsSoloFlight":true,"OutboundRoute":"sample string 9","InboundRoute":"sample string 10","NoStartTimeInformation":true,"NoLdgTimeInformation":true,"ValidationErrors":"sample string 13","Id":"b5c91517-3744-4816-be6a-c61e834dded9","CanUpdateRecord":true,"CanDeleteRecord":true},"Id":"41c34884-102c-43be-b813-49c410eb081c","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<FlightDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Flight">
  <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">41c34884-102c-43be-b813-49c410eb081c</Id>
  <FlightDate>2019-10-24T04:43:58.9756582+02:00</FlightDate>
  <FlightId>41c34884-102c-43be-b813-49c410eb081c</FlightId>
  <GliderFlightDetailsData>
    <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">b7562a91-af3c-48f5-9d3c-a76bf30907e8</Id>
    <AirStateId>5</AirStateId>
    <AircraftId>daa44a6a-54cb-4081-a00d-42630ddcf8b4</AircraftId>
    <CoPilotPersonId>fca5cd2e-a206-4405-a0a3-3f15f322162d</CoPilotPersonId>
    <EngineEndOperatingCounterInSeconds>1</EngineEndOperatingCounterInSeconds>
    <EngineStartOperatingCounterInSeconds>1</EngineStartOperatingCounterInSeconds>
    <FlightComment>sample string 4</FlightComment>
    <FlightCostBalanceType>1</FlightCostBalanceType>
    <FlightDuration>PT0.1234567S</FlightDuration>
    <FlightId>b7562a91-af3c-48f5-9d3c-a76bf30907e8</FlightId>
    <FlightTypeId>8e478305-3166-4917-b939-c2b937129ca1</FlightTypeId>
    <InboundRoute>sample string 10</InboundRoute>
    <InstructorPersonId>ba114220-f8b8-450b-87f4-6aed3d50d7c8</InstructorPersonId>
    <InvoiceRecipientPersonId>305d032d-44d4-41f6-af58-576e04b2a249</InvoiceRecipientPersonId>
    <IsSoloFlight>true</IsSoloFlight>
    <LdgDateTime>2019-10-24T04:43:58.9756582+02:00</LdgDateTime>
    <LdgLocationId>a9f2ce34-8379-476d-bcf7-bfbebfbb531a</LdgLocationId>
    <NoLdgTimeInformation>true</NoLdgTimeInformation>
    <NoStartTimeInformation>true</NoStartTimeInformation>
    <NrOfLdgs>1</NrOfLdgs>
    <ObserverPersonId>012f7e90-522a-44e0-bb51-af89cd0a80bd</ObserverPersonId>
    <OutboundRoute>sample string 9</OutboundRoute>
    <PilotPersonId>8f5e1578-4a83-4ebd-a6d1-2052a5f057bc</PilotPersonId>
    <ProcessStateId>6</ProcessStateId>
    <StartDateTime>2019-10-24T04:43:58.9756582+02:00</StartDateTime>
    <StartLocationId>bcdca7a1-04f0-4d8f-9c3d-1df8f897e776</StartLocationId>
    <ValidationErrors>sample string 13</ValidationErrors>
    <CouponNumber>sample string 1</CouponNumber>
    <PassengerPersonId>ac656519-0e92-4ed2-bf99-1d293fa88830</PassengerPersonId>
    <StartPosition>1</StartPosition>
    <WinchOperatorPersonId>ea4f1a69-4d25-4c9a-9fe6-27b6536a90c0</WinchOperatorPersonId>
  </GliderFlightDetailsData>
  <MotorFlightDetailsData>
    <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">b5c91517-3744-4816-be6a-c61e834dded9</Id>
    <AirStateId>5</AirStateId>
    <AircraftId>9c45caaf-890a-486f-babf-71f2a4079697</AircraftId>
    <CoPilotPersonId>29cdcd7c-b56c-490b-8cac-651ee1e3036f</CoPilotPersonId>
    <EngineEndOperatingCounterInSeconds>1</EngineEndOperatingCounterInSeconds>
    <EngineStartOperatingCounterInSeconds>1</EngineStartOperatingCounterInSeconds>
    <FlightComment>sample string 4</FlightComment>
    <FlightCostBalanceType>1</FlightCostBalanceType>
    <FlightDuration>PT0.1234567S</FlightDuration>
    <FlightId>b5c91517-3744-4816-be6a-c61e834dded9</FlightId>
    <FlightTypeId>62bc93dc-2b6a-474b-8c93-0f664f15d77a</FlightTypeId>
    <InboundRoute>sample string 10</InboundRoute>
    <InstructorPersonId>e6195db6-10a3-4640-bb22-8148d424e962</InstructorPersonId>
    <InvoiceRecipientPersonId>8eac86e4-ca14-4143-b845-129225e66620</InvoiceRecipientPersonId>
    <IsSoloFlight>true</IsSoloFlight>
    <LdgDateTime>2019-10-24T04:43:58.9756582+02:00</LdgDateTime>
    <LdgLocationId>ce35a0f7-03e1-4dee-bd98-05aa12742464</LdgLocationId>
    <NoLdgTimeInformation>true</NoLdgTimeInformation>
    <NoStartTimeInformation>true</NoStartTimeInformation>
    <NrOfLdgs>1</NrOfLdgs>
    <ObserverPersonId>dc2149cb-4c35-44b5-8474-d1c452819015</ObserverPersonId>
    <OutboundRoute>sample string 9</OutboundRoute>
    <PilotPersonId>48314611-1d6e-43fb-a744-7a99cab909ed</PilotPersonId>
    <ProcessStateId>6</ProcessStateId>
    <StartDateTime>2019-10-24T04:43:58.9756582+02:00</StartDateTime>
    <StartLocationId>0d65c7e7-3473-4330-a850-3a3ec01c2e74</StartLocationId>
    <ValidationErrors>sample string 13</ValidationErrors>
    <BlockEndDateTime>2019-10-24T04:43:58.9756582+02:00</BlockEndDateTime>
    <BlockStartDateTime>2019-10-24T04:43:58.9756582+02:00</BlockStartDateTime>
    <CouponNumber>sample string 1</CouponNumber>
    <NrOfLdgsOnStartLocation>1</NrOfLdgsOnStartLocation>
    <NrOfPassengers>1</NrOfPassengers>
    <PassengerPersonIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:guid>55ad4bff-5736-463b-ab53-4c7ed603333c</d3p1:guid>
      <d3p1:guid>f4c15e15-adfe-4781-a3cf-149d381b5921</d3p1:guid>
    </PassengerPersonIds>
  </MotorFlightDetailsData>
  <StartType>1</StartType>
  <TowFlightDetailsData>
    <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">5b57cd24-9b47-413a-aa66-5b7163ec5118</Id>
    <AirStateId>4</AirStateId>
    <AircraftId>85ea9e63-2acb-47fe-a9e6-95b758c52806</AircraftId>
    <CoPilotPersonId>71fe76f2-0f1c-439c-bdb7-87e990ddd254</CoPilotPersonId>
    <EngineEndOperatingCounterInSeconds>1</EngineEndOperatingCounterInSeconds>
    <EngineStartOperatingCounterInSeconds>1</EngineStartOperatingCounterInSeconds>
    <FlightComment>sample string 3</FlightComment>
    <FlightCostBalanceType>1</FlightCostBalanceType>
    <FlightDuration>PT0.1234567S</FlightDuration>
    <FlightId>5b57cd24-9b47-413a-aa66-5b7163ec5118</FlightId>
    <FlightTypeId>0729dc11-9d00-47cb-a1d0-aed446e6b67a</FlightTypeId>
    <InboundRoute>sample string 9</InboundRoute>
    <InstructorPersonId>d618754a-e825-4f44-91ac-d4f45e06ce58</InstructorPersonId>
    <InvoiceRecipientPersonId>9fe68dbe-ce38-477e-b6b9-08a593297fc6</InvoiceRecipientPersonId>
    <IsSoloFlight>true</IsSoloFlight>
    <LdgDateTime>2019-10-24T04:43:58.9756582+02:00</LdgDateTime>
    <LdgLocationId>262ba0d5-5195-4ac7-ab6c-37e4671a3a73</LdgLocationId>
    <NoLdgTimeInformation>true</NoLdgTimeInformation>
    <NoStartTimeInformation>true</NoStartTimeInformation>
    <NrOfLdgs>1</NrOfLdgs>
    <ObserverPersonId>37bf08f4-48c7-447e-b15b-8c614079ad81</ObserverPersonId>
    <OutboundRoute>sample string 8</OutboundRoute>
    <PilotPersonId>d6553455-45cc-47e0-bcd5-74f46009145d</PilotPersonId>
    <ProcessStateId>5</ProcessStateId>
    <StartDateTime>2019-10-24T04:43:58.9756582+02:00</StartDateTime>
    <StartLocationId>c49d813b-dab1-43f5-b5f8-dba3f557aa2b</StartLocationId>
    <ValidationErrors>sample string 12</ValidationErrors>
  </TowFlightDetailsData>
</FlightDetails>