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": "b6107fd3-3d60-44f0-ac6e-5c8482742f1b",
  "NewFlightProcessState": 0
}

text/html

Sample:
{"FlightId":"b6107fd3-3d60-44f0-ac6e-5c8482742f1b","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>b6107fd3-3d60-44f0-ac6e-5c8482742f1b</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": "92bf4978-fc42-4c08-8824-2881f1149c0c",
  "StartType": 1,
  "FlightDate": "2019-12-11T21:06:21.8362386+01:00",
  "GliderFlightDetailsData": {
    "CouponNumber": "sample string 1",
    "WinchOperatorPersonId": "2dbde1e8-6ab1-423b-8771-c521ec9518c7",
    "StartPosition": 1,
    "PassengerPersonId": "2e63dd3e-1d17-4152-a2d7-442629387cb0",
    "FlightId": "a1e33674-f909-4526-8487-4855d446b12b",
    "AircraftId": "2daa4e7e-07fa-4671-8bb2-1ee9f43b80cf",
    "PilotPersonId": "4a1ceae3-b716-46f0-81a9-50109f6ebc23",
    "CoPilotPersonId": "b34deb5c-963a-4a5a-9d2f-2ec97e190d52",
    "InstructorPersonId": "d9db55e5-a981-464d-bd30-6237877fae57",
    "ObserverPersonId": "624cd6aa-a234-4c43-9a62-a7a13e48c445",
    "InvoiceRecipientPersonId": "2a9920e7-27f3-44d9-b007-5bc156c07c8f",
    "EngineStartOperatingCounterInSeconds": 1,
    "EngineEndOperatingCounterInSeconds": 1,
    "FlightComment": "sample string 4",
    "AirStateId": 5,
    "ProcessStateId": 6,
    "FlightTypeId": "a3f2ff74-d944-4cca-aff9-62916cf14a07",
    "LdgDateTime": "2019-12-11T21:06:21.8362386+01:00",
    "StartDateTime": "2019-12-11T21:06:21.8362386+01:00",
    "FlightDuration": "00:00:00.1234567",
    "StartLocationId": "afdc8d4f-29e9-4798-8f7d-628fd5526ca0",
    "LdgLocationId": "6691a421-0c12-426b-b2df-fc28b4935852",
    "FlightCostBalanceType": 1,
    "NrOfLdgs": 1,
    "IsSoloFlight": true,
    "OutboundRoute": "sample string 9",
    "InboundRoute": "sample string 10",
    "NoStartTimeInformation": true,
    "NoLdgTimeInformation": true,
    "ValidationErrors": "sample string 13",
    "Id": "a1e33674-f909-4526-8487-4855d446b12b",
    "CanUpdateRecord": true,
    "CanDeleteRecord": true
  },
  "TowFlightDetailsData": {
    "FlightId": "5a1ed12f-14c4-432e-8344-83fff7924e86",
    "AircraftId": "b2127834-9358-407d-be17-3b8b20c1f7bf",
    "PilotPersonId": "e4a37896-e059-4d77-8a09-9cf4ddf8b9fd",
    "CoPilotPersonId": "1b03b5c2-ef14-4f17-a621-827980478797",
    "InstructorPersonId": "94bd67ce-9fff-4227-b103-6e3bc5c1698d",
    "ObserverPersonId": "5207ea6e-7d05-4dac-a871-ce1b53b9981c",
    "InvoiceRecipientPersonId": "82caa4cd-bdd6-48bb-84c9-9dea05e00c57",
    "EngineStartOperatingCounterInSeconds": 1,
    "EngineEndOperatingCounterInSeconds": 1,
    "FlightComment": "sample string 3",
    "AirStateId": 4,
    "ProcessStateId": 5,
    "FlightTypeId": "39d961b2-2f7c-4207-9d49-961df8816316",
    "LdgDateTime": "2019-12-11T21:06:21.8362386+01:00",
    "StartDateTime": "2019-12-11T21:06:21.8362386+01:00",
    "FlightDuration": "00:00:00.1234567",
    "StartLocationId": "1fcd282b-7ad7-4540-9890-1e223a5e2727",
    "LdgLocationId": "06a9dfd6-599b-4f9d-9bae-8825b26ee64f",
    "FlightCostBalanceType": 1,
    "NrOfLdgs": 1,
    "IsSoloFlight": true,
    "OutboundRoute": "sample string 8",
    "InboundRoute": "sample string 9",
    "NoStartTimeInformation": true,
    "NoLdgTimeInformation": true,
    "ValidationErrors": "sample string 12",
    "Id": "5a1ed12f-14c4-432e-8344-83fff7924e86",
    "CanUpdateRecord": true,
    "CanDeleteRecord": true
  },
  "MotorFlightDetailsData": {
    "CouponNumber": "sample string 1",
    "BlockStartDateTime": "2019-12-11T21:06:21.8362386+01:00",
    "BlockEndDateTime": "2019-12-11T21:06:21.8362386+01:00",
    "PassengerPersonIds": [
      "60244366-885a-4810-aacb-b214e1a6201b",
      "25d061bc-7564-48b8-8412-7291f86e6133"
    ],
    "NrOfPassengers": 1,
    "NrOfLdgsOnStartLocation": 1,
    "FlightId": "8b70a80c-e6a7-4990-bf56-c347756d072a",
    "AircraftId": "4fb86e6b-5788-454a-95af-19f2a869306f",
    "PilotPersonId": "2fe1636a-9041-42f2-a318-b0c633957656",
    "CoPilotPersonId": "52bf9709-5841-49c0-8676-8854556d3577",
    "InstructorPersonId": "1a5e223b-6401-44c0-9db0-801a3cc2b5cb",
    "ObserverPersonId": "3661bf21-0b7e-4349-9095-9450b7e6d6cf",
    "InvoiceRecipientPersonId": "0f4256f4-7857-45c2-9099-8021e61bb310",
    "EngineStartOperatingCounterInSeconds": 1,
    "EngineEndOperatingCounterInSeconds": 1,
    "FlightComment": "sample string 4",
    "AirStateId": 5,
    "ProcessStateId": 6,
    "FlightTypeId": "149a20e9-26bd-4636-bfad-8737126659de",
    "LdgDateTime": "2019-12-11T21:06:21.8362386+01:00",
    "StartDateTime": "2019-12-11T21:06:21.8362386+01:00",
    "FlightDuration": "00:00:00.1234567",
    "StartLocationId": "727a4fdb-8280-4c31-973b-9e3d5bbd3dd2",
    "LdgLocationId": "9cef73d2-3c5c-476a-9338-6a57624e417a",
    "FlightCostBalanceType": 1,
    "NrOfLdgs": 1,
    "IsSoloFlight": true,
    "OutboundRoute": "sample string 9",
    "InboundRoute": "sample string 10",
    "NoStartTimeInformation": true,
    "NoLdgTimeInformation": true,
    "ValidationErrors": "sample string 13",
    "Id": "8b70a80c-e6a7-4990-bf56-c347756d072a",
    "CanUpdateRecord": true,
    "CanDeleteRecord": true
  },
  "Id": "92bf4978-fc42-4c08-8824-2881f1149c0c",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"FlightId":"92bf4978-fc42-4c08-8824-2881f1149c0c","StartType":1,"FlightDate":"2019-12-11T21:06:21.8362386+01:00","GliderFlightDetailsData":{"CouponNumber":"sample string 1","WinchOperatorPersonId":"2dbde1e8-6ab1-423b-8771-c521ec9518c7","StartPosition":1,"PassengerPersonId":"2e63dd3e-1d17-4152-a2d7-442629387cb0","FlightId":"a1e33674-f909-4526-8487-4855d446b12b","AircraftId":"2daa4e7e-07fa-4671-8bb2-1ee9f43b80cf","PilotPersonId":"4a1ceae3-b716-46f0-81a9-50109f6ebc23","CoPilotPersonId":"b34deb5c-963a-4a5a-9d2f-2ec97e190d52","InstructorPersonId":"d9db55e5-a981-464d-bd30-6237877fae57","ObserverPersonId":"624cd6aa-a234-4c43-9a62-a7a13e48c445","InvoiceRecipientPersonId":"2a9920e7-27f3-44d9-b007-5bc156c07c8f","EngineStartOperatingCounterInSeconds":1,"EngineEndOperatingCounterInSeconds":1,"FlightComment":"sample string 4","AirStateId":5,"ProcessStateId":6,"FlightTypeId":"a3f2ff74-d944-4cca-aff9-62916cf14a07","LdgDateTime":"2019-12-11T21:06:21.8362386+01:00","StartDateTime":"2019-12-11T21:06:21.8362386+01:00","FlightDuration":"00:00:00.1234567","StartLocationId":"afdc8d4f-29e9-4798-8f7d-628fd5526ca0","LdgLocationId":"6691a421-0c12-426b-b2df-fc28b4935852","FlightCostBalanceType":1,"NrOfLdgs":1,"IsSoloFlight":true,"OutboundRoute":"sample string 9","InboundRoute":"sample string 10","NoStartTimeInformation":true,"NoLdgTimeInformation":true,"ValidationErrors":"sample string 13","Id":"a1e33674-f909-4526-8487-4855d446b12b","CanUpdateRecord":true,"CanDeleteRecord":true},"TowFlightDetailsData":{"FlightId":"5a1ed12f-14c4-432e-8344-83fff7924e86","AircraftId":"b2127834-9358-407d-be17-3b8b20c1f7bf","PilotPersonId":"e4a37896-e059-4d77-8a09-9cf4ddf8b9fd","CoPilotPersonId":"1b03b5c2-ef14-4f17-a621-827980478797","InstructorPersonId":"94bd67ce-9fff-4227-b103-6e3bc5c1698d","ObserverPersonId":"5207ea6e-7d05-4dac-a871-ce1b53b9981c","InvoiceRecipientPersonId":"82caa4cd-bdd6-48bb-84c9-9dea05e00c57","EngineStartOperatingCounterInSeconds":1,"EngineEndOperatingCounterInSeconds":1,"FlightComment":"sample string 3","AirStateId":4,"ProcessStateId":5,"FlightTypeId":"39d961b2-2f7c-4207-9d49-961df8816316","LdgDateTime":"2019-12-11T21:06:21.8362386+01:00","StartDateTime":"2019-12-11T21:06:21.8362386+01:00","FlightDuration":"00:00:00.1234567","StartLocationId":"1fcd282b-7ad7-4540-9890-1e223a5e2727","LdgLocationId":"06a9dfd6-599b-4f9d-9bae-8825b26ee64f","FlightCostBalanceType":1,"NrOfLdgs":1,"IsSoloFlight":true,"OutboundRoute":"sample string 8","InboundRoute":"sample string 9","NoStartTimeInformation":true,"NoLdgTimeInformation":true,"ValidationErrors":"sample string 12","Id":"5a1ed12f-14c4-432e-8344-83fff7924e86","CanUpdateRecord":true,"CanDeleteRecord":true},"MotorFlightDetailsData":{"CouponNumber":"sample string 1","BlockStartDateTime":"2019-12-11T21:06:21.8362386+01:00","BlockEndDateTime":"2019-12-11T21:06:21.8362386+01:00","PassengerPersonIds":["60244366-885a-4810-aacb-b214e1a6201b","25d061bc-7564-48b8-8412-7291f86e6133"],"NrOfPassengers":1,"NrOfLdgsOnStartLocation":1,"FlightId":"8b70a80c-e6a7-4990-bf56-c347756d072a","AircraftId":"4fb86e6b-5788-454a-95af-19f2a869306f","PilotPersonId":"2fe1636a-9041-42f2-a318-b0c633957656","CoPilotPersonId":"52bf9709-5841-49c0-8676-8854556d3577","InstructorPersonId":"1a5e223b-6401-44c0-9db0-801a3cc2b5cb","ObserverPersonId":"3661bf21-0b7e-4349-9095-9450b7e6d6cf","InvoiceRecipientPersonId":"0f4256f4-7857-45c2-9099-8021e61bb310","EngineStartOperatingCounterInSeconds":1,"EngineEndOperatingCounterInSeconds":1,"FlightComment":"sample string 4","AirStateId":5,"ProcessStateId":6,"FlightTypeId":"149a20e9-26bd-4636-bfad-8737126659de","LdgDateTime":"2019-12-11T21:06:21.8362386+01:00","StartDateTime":"2019-12-11T21:06:21.8362386+01:00","FlightDuration":"00:00:00.1234567","StartLocationId":"727a4fdb-8280-4c31-973b-9e3d5bbd3dd2","LdgLocationId":"9cef73d2-3c5c-476a-9338-6a57624e417a","FlightCostBalanceType":1,"NrOfLdgs":1,"IsSoloFlight":true,"OutboundRoute":"sample string 9","InboundRoute":"sample string 10","NoStartTimeInformation":true,"NoLdgTimeInformation":true,"ValidationErrors":"sample string 13","Id":"8b70a80c-e6a7-4990-bf56-c347756d072a","CanUpdateRecord":true,"CanDeleteRecord":true},"Id":"92bf4978-fc42-4c08-8824-2881f1149c0c","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">92bf4978-fc42-4c08-8824-2881f1149c0c</Id>
  <FlightDate>2019-12-11T21:06:21.8362386+01:00</FlightDate>
  <FlightId>92bf4978-fc42-4c08-8824-2881f1149c0c</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">a1e33674-f909-4526-8487-4855d446b12b</Id>
    <AirStateId>5</AirStateId>
    <AircraftId>2daa4e7e-07fa-4671-8bb2-1ee9f43b80cf</AircraftId>
    <CoPilotPersonId>b34deb5c-963a-4a5a-9d2f-2ec97e190d52</CoPilotPersonId>
    <EngineEndOperatingCounterInSeconds>1</EngineEndOperatingCounterInSeconds>
    <EngineStartOperatingCounterInSeconds>1</EngineStartOperatingCounterInSeconds>
    <FlightComment>sample string 4</FlightComment>
    <FlightCostBalanceType>1</FlightCostBalanceType>
    <FlightDuration>PT0.1234567S</FlightDuration>
    <FlightId>a1e33674-f909-4526-8487-4855d446b12b</FlightId>
    <FlightTypeId>a3f2ff74-d944-4cca-aff9-62916cf14a07</FlightTypeId>
    <InboundRoute>sample string 10</InboundRoute>
    <InstructorPersonId>d9db55e5-a981-464d-bd30-6237877fae57</InstructorPersonId>
    <InvoiceRecipientPersonId>2a9920e7-27f3-44d9-b007-5bc156c07c8f</InvoiceRecipientPersonId>
    <IsSoloFlight>true</IsSoloFlight>
    <LdgDateTime>2019-12-11T21:06:21.8362386+01:00</LdgDateTime>
    <LdgLocationId>6691a421-0c12-426b-b2df-fc28b4935852</LdgLocationId>
    <NoLdgTimeInformation>true</NoLdgTimeInformation>
    <NoStartTimeInformation>true</NoStartTimeInformation>
    <NrOfLdgs>1</NrOfLdgs>
    <ObserverPersonId>624cd6aa-a234-4c43-9a62-a7a13e48c445</ObserverPersonId>
    <OutboundRoute>sample string 9</OutboundRoute>
    <PilotPersonId>4a1ceae3-b716-46f0-81a9-50109f6ebc23</PilotPersonId>
    <ProcessStateId>6</ProcessStateId>
    <StartDateTime>2019-12-11T21:06:21.8362386+01:00</StartDateTime>
    <StartLocationId>afdc8d4f-29e9-4798-8f7d-628fd5526ca0</StartLocationId>
    <ValidationErrors>sample string 13</ValidationErrors>
    <CouponNumber>sample string 1</CouponNumber>
    <PassengerPersonId>2e63dd3e-1d17-4152-a2d7-442629387cb0</PassengerPersonId>
    <StartPosition>1</StartPosition>
    <WinchOperatorPersonId>2dbde1e8-6ab1-423b-8771-c521ec9518c7</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">8b70a80c-e6a7-4990-bf56-c347756d072a</Id>
    <AirStateId>5</AirStateId>
    <AircraftId>4fb86e6b-5788-454a-95af-19f2a869306f</AircraftId>
    <CoPilotPersonId>52bf9709-5841-49c0-8676-8854556d3577</CoPilotPersonId>
    <EngineEndOperatingCounterInSeconds>1</EngineEndOperatingCounterInSeconds>
    <EngineStartOperatingCounterInSeconds>1</EngineStartOperatingCounterInSeconds>
    <FlightComment>sample string 4</FlightComment>
    <FlightCostBalanceType>1</FlightCostBalanceType>
    <FlightDuration>PT0.1234567S</FlightDuration>
    <FlightId>8b70a80c-e6a7-4990-bf56-c347756d072a</FlightId>
    <FlightTypeId>149a20e9-26bd-4636-bfad-8737126659de</FlightTypeId>
    <InboundRoute>sample string 10</InboundRoute>
    <InstructorPersonId>1a5e223b-6401-44c0-9db0-801a3cc2b5cb</InstructorPersonId>
    <InvoiceRecipientPersonId>0f4256f4-7857-45c2-9099-8021e61bb310</InvoiceRecipientPersonId>
    <IsSoloFlight>true</IsSoloFlight>
    <LdgDateTime>2019-12-11T21:06:21.8362386+01:00</LdgDateTime>
    <LdgLocationId>9cef73d2-3c5c-476a-9338-6a57624e417a</LdgLocationId>
    <NoLdgTimeInformation>true</NoLdgTimeInformation>
    <NoStartTimeInformation>true</NoStartTimeInformation>
    <NrOfLdgs>1</NrOfLdgs>
    <ObserverPersonId>3661bf21-0b7e-4349-9095-9450b7e6d6cf</ObserverPersonId>
    <OutboundRoute>sample string 9</OutboundRoute>
    <PilotPersonId>2fe1636a-9041-42f2-a318-b0c633957656</PilotPersonId>
    <ProcessStateId>6</ProcessStateId>
    <StartDateTime>2019-12-11T21:06:21.8362386+01:00</StartDateTime>
    <StartLocationId>727a4fdb-8280-4c31-973b-9e3d5bbd3dd2</StartLocationId>
    <ValidationErrors>sample string 13</ValidationErrors>
    <BlockEndDateTime>2019-12-11T21:06:21.8362386+01:00</BlockEndDateTime>
    <BlockStartDateTime>2019-12-11T21:06:21.8362386+01: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>60244366-885a-4810-aacb-b214e1a6201b</d3p1:guid>
      <d3p1:guid>25d061bc-7564-48b8-8412-7291f86e6133</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">5a1ed12f-14c4-432e-8344-83fff7924e86</Id>
    <AirStateId>4</AirStateId>
    <AircraftId>b2127834-9358-407d-be17-3b8b20c1f7bf</AircraftId>
    <CoPilotPersonId>1b03b5c2-ef14-4f17-a621-827980478797</CoPilotPersonId>
    <EngineEndOperatingCounterInSeconds>1</EngineEndOperatingCounterInSeconds>
    <EngineStartOperatingCounterInSeconds>1</EngineStartOperatingCounterInSeconds>
    <FlightComment>sample string 3</FlightComment>
    <FlightCostBalanceType>1</FlightCostBalanceType>
    <FlightDuration>PT0.1234567S</FlightDuration>
    <FlightId>5a1ed12f-14c4-432e-8344-83fff7924e86</FlightId>
    <FlightTypeId>39d961b2-2f7c-4207-9d49-961df8816316</FlightTypeId>
    <InboundRoute>sample string 9</InboundRoute>
    <InstructorPersonId>94bd67ce-9fff-4227-b103-6e3bc5c1698d</InstructorPersonId>
    <InvoiceRecipientPersonId>82caa4cd-bdd6-48bb-84c9-9dea05e00c57</InvoiceRecipientPersonId>
    <IsSoloFlight>true</IsSoloFlight>
    <LdgDateTime>2019-12-11T21:06:21.8362386+01:00</LdgDateTime>
    <LdgLocationId>06a9dfd6-599b-4f9d-9bae-8825b26ee64f</LdgLocationId>
    <NoLdgTimeInformation>true</NoLdgTimeInformation>
    <NoStartTimeInformation>true</NoStartTimeInformation>
    <NrOfLdgs>1</NrOfLdgs>
    <ObserverPersonId>5207ea6e-7d05-4dac-a871-ce1b53b9981c</ObserverPersonId>
    <OutboundRoute>sample string 8</OutboundRoute>
    <PilotPersonId>e4a37896-e059-4d77-8a09-9cf4ddf8b9fd</PilotPersonId>
    <ProcessStateId>5</ProcessStateId>
    <StartDateTime>2019-12-11T21:06:21.8362386+01:00</StartDateTime>
    <StartLocationId>1fcd282b-7ad7-4540-9890-1e223a5e2727</StartLocationId>
    <ValidationErrors>sample string 12</ValidationErrors>
  </TowFlightDetailsData>
</FlightDetails>