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": "a7b5a80b-278d-4710-b15f-3868e54c0890",
  "NewFlightProcessState": 0
}

text/html

Sample:
{"FlightId":"a7b5a80b-278d-4710-b15f-3868e54c0890","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>a7b5a80b-278d-4710-b15f-3868e54c0890</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": "6c26579e-6cf8-498d-9440-e26da1aa6a25",
  "StartType": 1,
  "FlightDate": "2020-09-25T16:31:52.4525945+02:00",
  "GliderFlightDetailsData": {
    "CouponNumber": "sample string 1",
    "WinchOperatorPersonId": "39eea441-ab11-4cd0-b1ab-aadb5eb14f03",
    "StartPosition": 1,
    "PassengerPersonId": "28ce387f-6743-4470-a189-358ef7d42187",
    "FlightId": "5be4b52e-e773-4f87-a888-d4d6aea1df9e",
    "AircraftId": "37a9f452-cad6-4c5b-9d0e-d65844d5b9b0",
    "PilotPersonId": "abffff9c-3d9a-419c-92f8-528947182107",
    "CoPilotPersonId": "3388514a-761b-44b8-a032-c53bea2e031c",
    "InstructorPersonId": "3f67a6ef-3316-4677-9108-fd3f2eeaa13c",
    "ObserverPersonId": "5ebecf3f-16e2-4cdf-863a-d5d649815cb9",
    "InvoiceRecipientPersonId": "a83a925c-793b-4e0a-95ab-ea4a2d300e33",
    "EngineStartOperatingCounterInSeconds": 1,
    "EngineEndOperatingCounterInSeconds": 1,
    "FlightComment": "sample string 4",
    "AirStateId": 5,
    "ProcessStateId": 6,
    "FlightTypeId": "f3afcbe8-b827-42a3-9141-50ef0c8972b0",
    "LdgDateTime": "2020-09-25T16:31:52.4525945+02:00",
    "StartDateTime": "2020-09-25T16:31:52.4525945+02:00",
    "FlightDuration": "00:00:00.1234567",
    "StartLocationId": "da1d7614-bd1b-447f-800a-1bb54d9bcb50",
    "LdgLocationId": "81721609-4db8-4197-b248-c56aeb612979",
    "FlightCostBalanceType": 1,
    "NrOfLdgs": 1,
    "IsSoloFlight": true,
    "OutboundRoute": "sample string 9",
    "InboundRoute": "sample string 10",
    "NoStartTimeInformation": true,
    "NoLdgTimeInformation": true,
    "ValidationErrors": "sample string 13",
    "Id": "5be4b52e-e773-4f87-a888-d4d6aea1df9e",
    "CanUpdateRecord": true,
    "CanDeleteRecord": true
  },
  "TowFlightDetailsData": {
    "FlightId": "166bfc32-871b-4cc3-a77a-122cf9c886a5",
    "AircraftId": "63cfe8ce-b3f9-4595-86ce-f10350dc87cc",
    "PilotPersonId": "fcdccd40-f148-4ff0-8726-639924d02fed",
    "CoPilotPersonId": "a9d7a4c0-a60a-4a9b-8be1-b92d29627898",
    "InstructorPersonId": "f7f0a114-1a66-4480-89f5-e15b747d998e",
    "ObserverPersonId": "c19483a1-05cc-4170-9bc3-ed1e6a576021",
    "InvoiceRecipientPersonId": "4d1e8d24-2b17-4788-9ab3-eed1aacb3a2d",
    "EngineStartOperatingCounterInSeconds": 1,
    "EngineEndOperatingCounterInSeconds": 1,
    "FlightComment": "sample string 3",
    "AirStateId": 4,
    "ProcessStateId": 5,
    "FlightTypeId": "d13cb9a5-41c5-48ee-a585-00ea0f34725b",
    "LdgDateTime": "2020-09-25T16:31:52.4525945+02:00",
    "StartDateTime": "2020-09-25T16:31:52.4525945+02:00",
    "FlightDuration": "00:00:00.1234567",
    "StartLocationId": "d8925cde-59d3-4f05-8dfc-7cfb6fd56a13",
    "LdgLocationId": "28306b23-9f12-4aa5-9212-4e4922489d71",
    "FlightCostBalanceType": 1,
    "NrOfLdgs": 1,
    "IsSoloFlight": true,
    "OutboundRoute": "sample string 8",
    "InboundRoute": "sample string 9",
    "NoStartTimeInformation": true,
    "NoLdgTimeInformation": true,
    "ValidationErrors": "sample string 12",
    "Id": "166bfc32-871b-4cc3-a77a-122cf9c886a5",
    "CanUpdateRecord": true,
    "CanDeleteRecord": true
  },
  "MotorFlightDetailsData": {
    "CouponNumber": "sample string 1",
    "BlockStartDateTime": "2020-09-25T16:31:52.4525945+02:00",
    "BlockEndDateTime": "2020-09-25T16:31:52.4525945+02:00",
    "PassengerPersonIds": [
      "979249f9-7b7c-4f5a-b709-4039999d1359",
      "cbc71825-94ba-485a-a8d3-2ca0e9ee7173"
    ],
    "NrOfPassengers": 1,
    "NrOfLdgsOnStartLocation": 1,
    "FlightId": "d41e177d-7772-4201-b10f-bb4084dc14c2",
    "AircraftId": "5b5f1a1f-10c0-465c-bef0-cef08f94edf1",
    "PilotPersonId": "c300aa3b-c249-4e78-8a03-6a1840167161",
    "CoPilotPersonId": "01663ab4-8635-4165-b95d-db1e599e7545",
    "InstructorPersonId": "cbf861a2-60c1-4006-92af-67c4377aa859",
    "ObserverPersonId": "e8dc8d59-aed1-4067-80e5-ce6e8c6567c0",
    "InvoiceRecipientPersonId": "16899db5-e8a5-4987-ae1d-2beaabe0855c",
    "EngineStartOperatingCounterInSeconds": 1,
    "EngineEndOperatingCounterInSeconds": 1,
    "FlightComment": "sample string 4",
    "AirStateId": 5,
    "ProcessStateId": 6,
    "FlightTypeId": "39088306-420e-4cae-9146-1e6321995aa6",
    "LdgDateTime": "2020-09-25T16:31:52.4525945+02:00",
    "StartDateTime": "2020-09-25T16:31:52.4525945+02:00",
    "FlightDuration": "00:00:00.1234567",
    "StartLocationId": "d67b4748-2c3c-4646-b24a-00a4e8b68417",
    "LdgLocationId": "c311ae77-f6f2-4a42-88c1-abfe3f744c48",
    "FlightCostBalanceType": 1,
    "NrOfLdgs": 1,
    "IsSoloFlight": true,
    "OutboundRoute": "sample string 9",
    "InboundRoute": "sample string 10",
    "NoStartTimeInformation": true,
    "NoLdgTimeInformation": true,
    "ValidationErrors": "sample string 13",
    "Id": "d41e177d-7772-4201-b10f-bb4084dc14c2",
    "CanUpdateRecord": true,
    "CanDeleteRecord": true
  },
  "Id": "6c26579e-6cf8-498d-9440-e26da1aa6a25",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"FlightId":"6c26579e-6cf8-498d-9440-e26da1aa6a25","StartType":1,"FlightDate":"2020-09-25T16:31:52.4525945+02:00","GliderFlightDetailsData":{"CouponNumber":"sample string 1","WinchOperatorPersonId":"39eea441-ab11-4cd0-b1ab-aadb5eb14f03","StartPosition":1,"PassengerPersonId":"28ce387f-6743-4470-a189-358ef7d42187","FlightId":"5be4b52e-e773-4f87-a888-d4d6aea1df9e","AircraftId":"37a9f452-cad6-4c5b-9d0e-d65844d5b9b0","PilotPersonId":"abffff9c-3d9a-419c-92f8-528947182107","CoPilotPersonId":"3388514a-761b-44b8-a032-c53bea2e031c","InstructorPersonId":"3f67a6ef-3316-4677-9108-fd3f2eeaa13c","ObserverPersonId":"5ebecf3f-16e2-4cdf-863a-d5d649815cb9","InvoiceRecipientPersonId":"a83a925c-793b-4e0a-95ab-ea4a2d300e33","EngineStartOperatingCounterInSeconds":1,"EngineEndOperatingCounterInSeconds":1,"FlightComment":"sample string 4","AirStateId":5,"ProcessStateId":6,"FlightTypeId":"f3afcbe8-b827-42a3-9141-50ef0c8972b0","LdgDateTime":"2020-09-25T16:31:52.4525945+02:00","StartDateTime":"2020-09-25T16:31:52.4525945+02:00","FlightDuration":"00:00:00.1234567","StartLocationId":"da1d7614-bd1b-447f-800a-1bb54d9bcb50","LdgLocationId":"81721609-4db8-4197-b248-c56aeb612979","FlightCostBalanceType":1,"NrOfLdgs":1,"IsSoloFlight":true,"OutboundRoute":"sample string 9","InboundRoute":"sample string 10","NoStartTimeInformation":true,"NoLdgTimeInformation":true,"ValidationErrors":"sample string 13","Id":"5be4b52e-e773-4f87-a888-d4d6aea1df9e","CanUpdateRecord":true,"CanDeleteRecord":true},"TowFlightDetailsData":{"FlightId":"166bfc32-871b-4cc3-a77a-122cf9c886a5","AircraftId":"63cfe8ce-b3f9-4595-86ce-f10350dc87cc","PilotPersonId":"fcdccd40-f148-4ff0-8726-639924d02fed","CoPilotPersonId":"a9d7a4c0-a60a-4a9b-8be1-b92d29627898","InstructorPersonId":"f7f0a114-1a66-4480-89f5-e15b747d998e","ObserverPersonId":"c19483a1-05cc-4170-9bc3-ed1e6a576021","InvoiceRecipientPersonId":"4d1e8d24-2b17-4788-9ab3-eed1aacb3a2d","EngineStartOperatingCounterInSeconds":1,"EngineEndOperatingCounterInSeconds":1,"FlightComment":"sample string 3","AirStateId":4,"ProcessStateId":5,"FlightTypeId":"d13cb9a5-41c5-48ee-a585-00ea0f34725b","LdgDateTime":"2020-09-25T16:31:52.4525945+02:00","StartDateTime":"2020-09-25T16:31:52.4525945+02:00","FlightDuration":"00:00:00.1234567","StartLocationId":"d8925cde-59d3-4f05-8dfc-7cfb6fd56a13","LdgLocationId":"28306b23-9f12-4aa5-9212-4e4922489d71","FlightCostBalanceType":1,"NrOfLdgs":1,"IsSoloFlight":true,"OutboundRoute":"sample string 8","InboundRoute":"sample string 9","NoStartTimeInformation":true,"NoLdgTimeInformation":true,"ValidationErrors":"sample string 12","Id":"166bfc32-871b-4cc3-a77a-122cf9c886a5","CanUpdateRecord":true,"CanDeleteRecord":true},"MotorFlightDetailsData":{"CouponNumber":"sample string 1","BlockStartDateTime":"2020-09-25T16:31:52.4525945+02:00","BlockEndDateTime":"2020-09-25T16:31:52.4525945+02:00","PassengerPersonIds":["979249f9-7b7c-4f5a-b709-4039999d1359","cbc71825-94ba-485a-a8d3-2ca0e9ee7173"],"NrOfPassengers":1,"NrOfLdgsOnStartLocation":1,"FlightId":"d41e177d-7772-4201-b10f-bb4084dc14c2","AircraftId":"5b5f1a1f-10c0-465c-bef0-cef08f94edf1","PilotPersonId":"c300aa3b-c249-4e78-8a03-6a1840167161","CoPilotPersonId":"01663ab4-8635-4165-b95d-db1e599e7545","InstructorPersonId":"cbf861a2-60c1-4006-92af-67c4377aa859","ObserverPersonId":"e8dc8d59-aed1-4067-80e5-ce6e8c6567c0","InvoiceRecipientPersonId":"16899db5-e8a5-4987-ae1d-2beaabe0855c","EngineStartOperatingCounterInSeconds":1,"EngineEndOperatingCounterInSeconds":1,"FlightComment":"sample string 4","AirStateId":5,"ProcessStateId":6,"FlightTypeId":"39088306-420e-4cae-9146-1e6321995aa6","LdgDateTime":"2020-09-25T16:31:52.4525945+02:00","StartDateTime":"2020-09-25T16:31:52.4525945+02:00","FlightDuration":"00:00:00.1234567","StartLocationId":"d67b4748-2c3c-4646-b24a-00a4e8b68417","LdgLocationId":"c311ae77-f6f2-4a42-88c1-abfe3f744c48","FlightCostBalanceType":1,"NrOfLdgs":1,"IsSoloFlight":true,"OutboundRoute":"sample string 9","InboundRoute":"sample string 10","NoStartTimeInformation":true,"NoLdgTimeInformation":true,"ValidationErrors":"sample string 13","Id":"d41e177d-7772-4201-b10f-bb4084dc14c2","CanUpdateRecord":true,"CanDeleteRecord":true},"Id":"6c26579e-6cf8-498d-9440-e26da1aa6a25","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">6c26579e-6cf8-498d-9440-e26da1aa6a25</Id>
  <FlightDate>2020-09-25T16:31:52.4525945+02:00</FlightDate>
  <FlightId>6c26579e-6cf8-498d-9440-e26da1aa6a25</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">5be4b52e-e773-4f87-a888-d4d6aea1df9e</Id>
    <AirStateId>5</AirStateId>
    <AircraftId>37a9f452-cad6-4c5b-9d0e-d65844d5b9b0</AircraftId>
    <CoPilotPersonId>3388514a-761b-44b8-a032-c53bea2e031c</CoPilotPersonId>
    <EngineEndOperatingCounterInSeconds>1</EngineEndOperatingCounterInSeconds>
    <EngineStartOperatingCounterInSeconds>1</EngineStartOperatingCounterInSeconds>
    <FlightComment>sample string 4</FlightComment>
    <FlightCostBalanceType>1</FlightCostBalanceType>
    <FlightDuration>PT0.1234567S</FlightDuration>
    <FlightId>5be4b52e-e773-4f87-a888-d4d6aea1df9e</FlightId>
    <FlightTypeId>f3afcbe8-b827-42a3-9141-50ef0c8972b0</FlightTypeId>
    <InboundRoute>sample string 10</InboundRoute>
    <InstructorPersonId>3f67a6ef-3316-4677-9108-fd3f2eeaa13c</InstructorPersonId>
    <InvoiceRecipientPersonId>a83a925c-793b-4e0a-95ab-ea4a2d300e33</InvoiceRecipientPersonId>
    <IsSoloFlight>true</IsSoloFlight>
    <LdgDateTime>2020-09-25T16:31:52.4525945+02:00</LdgDateTime>
    <LdgLocationId>81721609-4db8-4197-b248-c56aeb612979</LdgLocationId>
    <NoLdgTimeInformation>true</NoLdgTimeInformation>
    <NoStartTimeInformation>true</NoStartTimeInformation>
    <NrOfLdgs>1</NrOfLdgs>
    <ObserverPersonId>5ebecf3f-16e2-4cdf-863a-d5d649815cb9</ObserverPersonId>
    <OutboundRoute>sample string 9</OutboundRoute>
    <PilotPersonId>abffff9c-3d9a-419c-92f8-528947182107</PilotPersonId>
    <ProcessStateId>6</ProcessStateId>
    <StartDateTime>2020-09-25T16:31:52.4525945+02:00</StartDateTime>
    <StartLocationId>da1d7614-bd1b-447f-800a-1bb54d9bcb50</StartLocationId>
    <ValidationErrors>sample string 13</ValidationErrors>
    <CouponNumber>sample string 1</CouponNumber>
    <PassengerPersonId>28ce387f-6743-4470-a189-358ef7d42187</PassengerPersonId>
    <StartPosition>1</StartPosition>
    <WinchOperatorPersonId>39eea441-ab11-4cd0-b1ab-aadb5eb14f03</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">d41e177d-7772-4201-b10f-bb4084dc14c2</Id>
    <AirStateId>5</AirStateId>
    <AircraftId>5b5f1a1f-10c0-465c-bef0-cef08f94edf1</AircraftId>
    <CoPilotPersonId>01663ab4-8635-4165-b95d-db1e599e7545</CoPilotPersonId>
    <EngineEndOperatingCounterInSeconds>1</EngineEndOperatingCounterInSeconds>
    <EngineStartOperatingCounterInSeconds>1</EngineStartOperatingCounterInSeconds>
    <FlightComment>sample string 4</FlightComment>
    <FlightCostBalanceType>1</FlightCostBalanceType>
    <FlightDuration>PT0.1234567S</FlightDuration>
    <FlightId>d41e177d-7772-4201-b10f-bb4084dc14c2</FlightId>
    <FlightTypeId>39088306-420e-4cae-9146-1e6321995aa6</FlightTypeId>
    <InboundRoute>sample string 10</InboundRoute>
    <InstructorPersonId>cbf861a2-60c1-4006-92af-67c4377aa859</InstructorPersonId>
    <InvoiceRecipientPersonId>16899db5-e8a5-4987-ae1d-2beaabe0855c</InvoiceRecipientPersonId>
    <IsSoloFlight>true</IsSoloFlight>
    <LdgDateTime>2020-09-25T16:31:52.4525945+02:00</LdgDateTime>
    <LdgLocationId>c311ae77-f6f2-4a42-88c1-abfe3f744c48</LdgLocationId>
    <NoLdgTimeInformation>true</NoLdgTimeInformation>
    <NoStartTimeInformation>true</NoStartTimeInformation>
    <NrOfLdgs>1</NrOfLdgs>
    <ObserverPersonId>e8dc8d59-aed1-4067-80e5-ce6e8c6567c0</ObserverPersonId>
    <OutboundRoute>sample string 9</OutboundRoute>
    <PilotPersonId>c300aa3b-c249-4e78-8a03-6a1840167161</PilotPersonId>
    <ProcessStateId>6</ProcessStateId>
    <StartDateTime>2020-09-25T16:31:52.4525945+02:00</StartDateTime>
    <StartLocationId>d67b4748-2c3c-4646-b24a-00a4e8b68417</StartLocationId>
    <ValidationErrors>sample string 13</ValidationErrors>
    <BlockEndDateTime>2020-09-25T16:31:52.4525945+02:00</BlockEndDateTime>
    <BlockStartDateTime>2020-09-25T16:31:52.4525945+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>979249f9-7b7c-4f5a-b709-4039999d1359</d3p1:guid>
      <d3p1:guid>cbc71825-94ba-485a-a8d3-2ca0e9ee7173</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">166bfc32-871b-4cc3-a77a-122cf9c886a5</Id>
    <AirStateId>4</AirStateId>
    <AircraftId>63cfe8ce-b3f9-4595-86ce-f10350dc87cc</AircraftId>
    <CoPilotPersonId>a9d7a4c0-a60a-4a9b-8be1-b92d29627898</CoPilotPersonId>
    <EngineEndOperatingCounterInSeconds>1</EngineEndOperatingCounterInSeconds>
    <EngineStartOperatingCounterInSeconds>1</EngineStartOperatingCounterInSeconds>
    <FlightComment>sample string 3</FlightComment>
    <FlightCostBalanceType>1</FlightCostBalanceType>
    <FlightDuration>PT0.1234567S</FlightDuration>
    <FlightId>166bfc32-871b-4cc3-a77a-122cf9c886a5</FlightId>
    <FlightTypeId>d13cb9a5-41c5-48ee-a585-00ea0f34725b</FlightTypeId>
    <InboundRoute>sample string 9</InboundRoute>
    <InstructorPersonId>f7f0a114-1a66-4480-89f5-e15b747d998e</InstructorPersonId>
    <InvoiceRecipientPersonId>4d1e8d24-2b17-4788-9ab3-eed1aacb3a2d</InvoiceRecipientPersonId>
    <IsSoloFlight>true</IsSoloFlight>
    <LdgDateTime>2020-09-25T16:31:52.4525945+02:00</LdgDateTime>
    <LdgLocationId>28306b23-9f12-4aa5-9212-4e4922489d71</LdgLocationId>
    <NoLdgTimeInformation>true</NoLdgTimeInformation>
    <NoStartTimeInformation>true</NoStartTimeInformation>
    <NrOfLdgs>1</NrOfLdgs>
    <ObserverPersonId>c19483a1-05cc-4170-9bc3-ed1e6a576021</ObserverPersonId>
    <OutboundRoute>sample string 8</OutboundRoute>
    <PilotPersonId>fcdccd40-f148-4ff0-8726-639924d02fed</PilotPersonId>
    <ProcessStateId>5</ProcessStateId>
    <StartDateTime>2020-09-25T16:31:52.4525945+02:00</StartDateTime>
    <StartLocationId>d8925cde-59d3-4f05-8dfc-7cfb6fd56a13</StartLocationId>
    <ValidationErrors>sample string 12</ValidationErrors>
  </TowFlightDetailsData>
</FlightDetails>