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": "15c54bd8-7333-4a58-b5cb-12fe576545db",
  "NewFlightProcessState": 0
}

text/html

Sample:
{"FlightId":"15c54bd8-7333-4a58-b5cb-12fe576545db","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>15c54bd8-7333-4a58-b5cb-12fe576545db</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": "b0fa68b8-a577-47f9-805f-f46595064aa9",
  "StartType": 1,
  "FlightDate": "2023-02-06T17:53:41.3621256+01:00",
  "GliderFlightDetailsData": {
    "CouponNumber": "sample string 1",
    "WinchOperatorPersonId": "5cc26bf0-9439-4db1-88f9-1c331e25c324",
    "StartPosition": 1,
    "PassengerPersonId": "1feba30a-f75a-4555-baa1-bb23d2deffb1",
    "FlightId": "246aa972-776e-4b59-89f5-b2d285518f57",
    "AircraftId": "d71ef210-c312-4a7f-b10a-eb01d743fcbb",
    "PilotPersonId": "55a4c4e7-bd49-4306-acee-7a08634960e2",
    "CoPilotPersonId": "95821afd-9206-42b7-855b-851a6fd085c5",
    "InstructorPersonId": "234c0233-414c-461e-b191-b39f42ab0496",
    "ObserverPersonId": "5abee7e5-7598-477f-8151-60d9470946a5",
    "InvoiceRecipientPersonId": "c0b4bc58-d677-4263-b1ef-d9e67a444290",
    "EngineStartOperatingCounterInSeconds": 1,
    "EngineEndOperatingCounterInSeconds": 1,
    "FlightComment": "sample string 4",
    "AirStateId": 5,
    "ProcessStateId": 6,
    "FlightTypeId": "5669741d-f05e-4b3f-8cf6-52d0ef4ee1fa",
    "LdgDateTime": "2023-02-06T17:53:41.3621256+01:00",
    "StartDateTime": "2023-02-06T17:53:41.3621256+01:00",
    "FlightDuration": "00:00:00.1234567",
    "StartLocationId": "1123b05f-1c0e-45de-a6a8-623fd73c589f",
    "LdgLocationId": "ac5f09ad-7ac6-4f5c-ac2d-be8076890fdc",
    "FlightCostBalanceType": 1,
    "NrOfLdgs": 1,
    "IsSoloFlight": true,
    "OutboundRoute": "sample string 9",
    "InboundRoute": "sample string 10",
    "NoStartTimeInformation": true,
    "NoLdgTimeInformation": true,
    "ValidationErrors": "sample string 13",
    "Id": "246aa972-776e-4b59-89f5-b2d285518f57",
    "CanUpdateRecord": true,
    "CanDeleteRecord": true
  },
  "TowFlightDetailsData": {
    "FlightId": "2523c395-bccb-452e-b746-e0ebe7ab7a1b",
    "AircraftId": "3ba08f33-bcdb-4fa4-92cc-cdc792fcfffd",
    "PilotPersonId": "1da31fcb-c70f-492e-95e0-1d13d0de1c60",
    "CoPilotPersonId": "206bd3bd-1a5c-4dad-ba21-10ac28844b2d",
    "InstructorPersonId": "d104ddce-7837-4e0a-a88c-a66b8415f077",
    "ObserverPersonId": "fcaefed0-e6da-4748-981f-0b8393351705",
    "InvoiceRecipientPersonId": "3f2c3973-b735-4f08-97c3-432654fb1cb2",
    "EngineStartOperatingCounterInSeconds": 1,
    "EngineEndOperatingCounterInSeconds": 1,
    "FlightComment": "sample string 3",
    "AirStateId": 4,
    "ProcessStateId": 5,
    "FlightTypeId": "30b27d49-222b-427a-8ff4-2af053ad5c95",
    "LdgDateTime": "2023-02-06T17:53:41.3621256+01:00",
    "StartDateTime": "2023-02-06T17:53:41.3621256+01:00",
    "FlightDuration": "00:00:00.1234567",
    "StartLocationId": "79020bbd-10cb-44e0-b0e4-ea2c639ccd1a",
    "LdgLocationId": "67d002b7-dc28-471e-9c5a-a0dafe9f96ea",
    "FlightCostBalanceType": 1,
    "NrOfLdgs": 1,
    "IsSoloFlight": true,
    "OutboundRoute": "sample string 8",
    "InboundRoute": "sample string 9",
    "NoStartTimeInformation": true,
    "NoLdgTimeInformation": true,
    "ValidationErrors": "sample string 12",
    "Id": "2523c395-bccb-452e-b746-e0ebe7ab7a1b",
    "CanUpdateRecord": true,
    "CanDeleteRecord": true
  },
  "MotorFlightDetailsData": {
    "CouponNumber": "sample string 1",
    "BlockStartDateTime": "2023-02-06T17:53:41.3621256+01:00",
    "BlockEndDateTime": "2023-02-06T17:53:41.3621256+01:00",
    "PassengerPersonIds": [
      "4fec562e-9152-424a-af5d-c6ded906bfb3",
      "5a38bb38-5e66-4de1-a952-857cbb34605a"
    ],
    "NrOfPassengers": 1,
    "NrOfLdgsOnStartLocation": 1,
    "FlightId": "6efb1c4a-99c9-4026-be14-27645987e99d",
    "AircraftId": "eaf2792f-278b-4b79-9158-ebe076654b17",
    "PilotPersonId": "25359739-1123-48fd-9338-4ed8cd2240f4",
    "CoPilotPersonId": "07cba615-6b28-4724-b394-7f708793130f",
    "InstructorPersonId": "070fe22f-a730-4455-8afa-3f962650842c",
    "ObserverPersonId": "d5a630c6-4593-44d4-b9e3-0ba13fee718d",
    "InvoiceRecipientPersonId": "46b23597-ac49-43db-a6a6-da12bf0c553c",
    "EngineStartOperatingCounterInSeconds": 1,
    "EngineEndOperatingCounterInSeconds": 1,
    "FlightComment": "sample string 4",
    "AirStateId": 5,
    "ProcessStateId": 6,
    "FlightTypeId": "3644c4e6-92de-4ec4-a7ce-c8b5f8c35878",
    "LdgDateTime": "2023-02-06T17:53:41.3621256+01:00",
    "StartDateTime": "2023-02-06T17:53:41.3621256+01:00",
    "FlightDuration": "00:00:00.1234567",
    "StartLocationId": "788f86a5-f563-4c2f-bd08-147e79ae60e3",
    "LdgLocationId": "89094047-ed3a-479a-a35d-c43544d2aa0f",
    "FlightCostBalanceType": 1,
    "NrOfLdgs": 1,
    "IsSoloFlight": true,
    "OutboundRoute": "sample string 9",
    "InboundRoute": "sample string 10",
    "NoStartTimeInformation": true,
    "NoLdgTimeInformation": true,
    "ValidationErrors": "sample string 13",
    "Id": "6efb1c4a-99c9-4026-be14-27645987e99d",
    "CanUpdateRecord": true,
    "CanDeleteRecord": true
  },
  "Id": "b0fa68b8-a577-47f9-805f-f46595064aa9",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"FlightId":"b0fa68b8-a577-47f9-805f-f46595064aa9","StartType":1,"FlightDate":"2023-02-06T17:53:41.3621256+01:00","GliderFlightDetailsData":{"CouponNumber":"sample string 1","WinchOperatorPersonId":"5cc26bf0-9439-4db1-88f9-1c331e25c324","StartPosition":1,"PassengerPersonId":"1feba30a-f75a-4555-baa1-bb23d2deffb1","FlightId":"246aa972-776e-4b59-89f5-b2d285518f57","AircraftId":"d71ef210-c312-4a7f-b10a-eb01d743fcbb","PilotPersonId":"55a4c4e7-bd49-4306-acee-7a08634960e2","CoPilotPersonId":"95821afd-9206-42b7-855b-851a6fd085c5","InstructorPersonId":"234c0233-414c-461e-b191-b39f42ab0496","ObserverPersonId":"5abee7e5-7598-477f-8151-60d9470946a5","InvoiceRecipientPersonId":"c0b4bc58-d677-4263-b1ef-d9e67a444290","EngineStartOperatingCounterInSeconds":1,"EngineEndOperatingCounterInSeconds":1,"FlightComment":"sample string 4","AirStateId":5,"ProcessStateId":6,"FlightTypeId":"5669741d-f05e-4b3f-8cf6-52d0ef4ee1fa","LdgDateTime":"2023-02-06T17:53:41.3621256+01:00","StartDateTime":"2023-02-06T17:53:41.3621256+01:00","FlightDuration":"00:00:00.1234567","StartLocationId":"1123b05f-1c0e-45de-a6a8-623fd73c589f","LdgLocationId":"ac5f09ad-7ac6-4f5c-ac2d-be8076890fdc","FlightCostBalanceType":1,"NrOfLdgs":1,"IsSoloFlight":true,"OutboundRoute":"sample string 9","InboundRoute":"sample string 10","NoStartTimeInformation":true,"NoLdgTimeInformation":true,"ValidationErrors":"sample string 13","Id":"246aa972-776e-4b59-89f5-b2d285518f57","CanUpdateRecord":true,"CanDeleteRecord":true},"TowFlightDetailsData":{"FlightId":"2523c395-bccb-452e-b746-e0ebe7ab7a1b","AircraftId":"3ba08f33-bcdb-4fa4-92cc-cdc792fcfffd","PilotPersonId":"1da31fcb-c70f-492e-95e0-1d13d0de1c60","CoPilotPersonId":"206bd3bd-1a5c-4dad-ba21-10ac28844b2d","InstructorPersonId":"d104ddce-7837-4e0a-a88c-a66b8415f077","ObserverPersonId":"fcaefed0-e6da-4748-981f-0b8393351705","InvoiceRecipientPersonId":"3f2c3973-b735-4f08-97c3-432654fb1cb2","EngineStartOperatingCounterInSeconds":1,"EngineEndOperatingCounterInSeconds":1,"FlightComment":"sample string 3","AirStateId":4,"ProcessStateId":5,"FlightTypeId":"30b27d49-222b-427a-8ff4-2af053ad5c95","LdgDateTime":"2023-02-06T17:53:41.3621256+01:00","StartDateTime":"2023-02-06T17:53:41.3621256+01:00","FlightDuration":"00:00:00.1234567","StartLocationId":"79020bbd-10cb-44e0-b0e4-ea2c639ccd1a","LdgLocationId":"67d002b7-dc28-471e-9c5a-a0dafe9f96ea","FlightCostBalanceType":1,"NrOfLdgs":1,"IsSoloFlight":true,"OutboundRoute":"sample string 8","InboundRoute":"sample string 9","NoStartTimeInformation":true,"NoLdgTimeInformation":true,"ValidationErrors":"sample string 12","Id":"2523c395-bccb-452e-b746-e0ebe7ab7a1b","CanUpdateRecord":true,"CanDeleteRecord":true},"MotorFlightDetailsData":{"CouponNumber":"sample string 1","BlockStartDateTime":"2023-02-06T17:53:41.3621256+01:00","BlockEndDateTime":"2023-02-06T17:53:41.3621256+01:00","PassengerPersonIds":["4fec562e-9152-424a-af5d-c6ded906bfb3","5a38bb38-5e66-4de1-a952-857cbb34605a"],"NrOfPassengers":1,"NrOfLdgsOnStartLocation":1,"FlightId":"6efb1c4a-99c9-4026-be14-27645987e99d","AircraftId":"eaf2792f-278b-4b79-9158-ebe076654b17","PilotPersonId":"25359739-1123-48fd-9338-4ed8cd2240f4","CoPilotPersonId":"07cba615-6b28-4724-b394-7f708793130f","InstructorPersonId":"070fe22f-a730-4455-8afa-3f962650842c","ObserverPersonId":"d5a630c6-4593-44d4-b9e3-0ba13fee718d","InvoiceRecipientPersonId":"46b23597-ac49-43db-a6a6-da12bf0c553c","EngineStartOperatingCounterInSeconds":1,"EngineEndOperatingCounterInSeconds":1,"FlightComment":"sample string 4","AirStateId":5,"ProcessStateId":6,"FlightTypeId":"3644c4e6-92de-4ec4-a7ce-c8b5f8c35878","LdgDateTime":"2023-02-06T17:53:41.3621256+01:00","StartDateTime":"2023-02-06T17:53:41.3621256+01:00","FlightDuration":"00:00:00.1234567","StartLocationId":"788f86a5-f563-4c2f-bd08-147e79ae60e3","LdgLocationId":"89094047-ed3a-479a-a35d-c43544d2aa0f","FlightCostBalanceType":1,"NrOfLdgs":1,"IsSoloFlight":true,"OutboundRoute":"sample string 9","InboundRoute":"sample string 10","NoStartTimeInformation":true,"NoLdgTimeInformation":true,"ValidationErrors":"sample string 13","Id":"6efb1c4a-99c9-4026-be14-27645987e99d","CanUpdateRecord":true,"CanDeleteRecord":true},"Id":"b0fa68b8-a577-47f9-805f-f46595064aa9","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">b0fa68b8-a577-47f9-805f-f46595064aa9</Id>
  <FlightDate>2023-02-06T17:53:41.3621256+01:00</FlightDate>
  <FlightId>b0fa68b8-a577-47f9-805f-f46595064aa9</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">246aa972-776e-4b59-89f5-b2d285518f57</Id>
    <AirStateId>5</AirStateId>
    <AircraftId>d71ef210-c312-4a7f-b10a-eb01d743fcbb</AircraftId>
    <CoPilotPersonId>95821afd-9206-42b7-855b-851a6fd085c5</CoPilotPersonId>
    <EngineEndOperatingCounterInSeconds>1</EngineEndOperatingCounterInSeconds>
    <EngineStartOperatingCounterInSeconds>1</EngineStartOperatingCounterInSeconds>
    <FlightComment>sample string 4</FlightComment>
    <FlightCostBalanceType>1</FlightCostBalanceType>
    <FlightDuration>PT0.1234567S</FlightDuration>
    <FlightId>246aa972-776e-4b59-89f5-b2d285518f57</FlightId>
    <FlightTypeId>5669741d-f05e-4b3f-8cf6-52d0ef4ee1fa</FlightTypeId>
    <InboundRoute>sample string 10</InboundRoute>
    <InstructorPersonId>234c0233-414c-461e-b191-b39f42ab0496</InstructorPersonId>
    <InvoiceRecipientPersonId>c0b4bc58-d677-4263-b1ef-d9e67a444290</InvoiceRecipientPersonId>
    <IsSoloFlight>true</IsSoloFlight>
    <LdgDateTime>2023-02-06T17:53:41.3621256+01:00</LdgDateTime>
    <LdgLocationId>ac5f09ad-7ac6-4f5c-ac2d-be8076890fdc</LdgLocationId>
    <NoLdgTimeInformation>true</NoLdgTimeInformation>
    <NoStartTimeInformation>true</NoStartTimeInformation>
    <NrOfLdgs>1</NrOfLdgs>
    <ObserverPersonId>5abee7e5-7598-477f-8151-60d9470946a5</ObserverPersonId>
    <OutboundRoute>sample string 9</OutboundRoute>
    <PilotPersonId>55a4c4e7-bd49-4306-acee-7a08634960e2</PilotPersonId>
    <ProcessStateId>6</ProcessStateId>
    <StartDateTime>2023-02-06T17:53:41.3621256+01:00</StartDateTime>
    <StartLocationId>1123b05f-1c0e-45de-a6a8-623fd73c589f</StartLocationId>
    <ValidationErrors>sample string 13</ValidationErrors>
    <CouponNumber>sample string 1</CouponNumber>
    <PassengerPersonId>1feba30a-f75a-4555-baa1-bb23d2deffb1</PassengerPersonId>
    <StartPosition>1</StartPosition>
    <WinchOperatorPersonId>5cc26bf0-9439-4db1-88f9-1c331e25c324</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">6efb1c4a-99c9-4026-be14-27645987e99d</Id>
    <AirStateId>5</AirStateId>
    <AircraftId>eaf2792f-278b-4b79-9158-ebe076654b17</AircraftId>
    <CoPilotPersonId>07cba615-6b28-4724-b394-7f708793130f</CoPilotPersonId>
    <EngineEndOperatingCounterInSeconds>1</EngineEndOperatingCounterInSeconds>
    <EngineStartOperatingCounterInSeconds>1</EngineStartOperatingCounterInSeconds>
    <FlightComment>sample string 4</FlightComment>
    <FlightCostBalanceType>1</FlightCostBalanceType>
    <FlightDuration>PT0.1234567S</FlightDuration>
    <FlightId>6efb1c4a-99c9-4026-be14-27645987e99d</FlightId>
    <FlightTypeId>3644c4e6-92de-4ec4-a7ce-c8b5f8c35878</FlightTypeId>
    <InboundRoute>sample string 10</InboundRoute>
    <InstructorPersonId>070fe22f-a730-4455-8afa-3f962650842c</InstructorPersonId>
    <InvoiceRecipientPersonId>46b23597-ac49-43db-a6a6-da12bf0c553c</InvoiceRecipientPersonId>
    <IsSoloFlight>true</IsSoloFlight>
    <LdgDateTime>2023-02-06T17:53:41.3621256+01:00</LdgDateTime>
    <LdgLocationId>89094047-ed3a-479a-a35d-c43544d2aa0f</LdgLocationId>
    <NoLdgTimeInformation>true</NoLdgTimeInformation>
    <NoStartTimeInformation>true</NoStartTimeInformation>
    <NrOfLdgs>1</NrOfLdgs>
    <ObserverPersonId>d5a630c6-4593-44d4-b9e3-0ba13fee718d</ObserverPersonId>
    <OutboundRoute>sample string 9</OutboundRoute>
    <PilotPersonId>25359739-1123-48fd-9338-4ed8cd2240f4</PilotPersonId>
    <ProcessStateId>6</ProcessStateId>
    <StartDateTime>2023-02-06T17:53:41.3621256+01:00</StartDateTime>
    <StartLocationId>788f86a5-f563-4c2f-bd08-147e79ae60e3</StartLocationId>
    <ValidationErrors>sample string 13</ValidationErrors>
    <BlockEndDateTime>2023-02-06T17:53:41.3621256+01:00</BlockEndDateTime>
    <BlockStartDateTime>2023-02-06T17:53:41.3621256+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>4fec562e-9152-424a-af5d-c6ded906bfb3</d3p1:guid>
      <d3p1:guid>5a38bb38-5e66-4de1-a952-857cbb34605a</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">2523c395-bccb-452e-b746-e0ebe7ab7a1b</Id>
    <AirStateId>4</AirStateId>
    <AircraftId>3ba08f33-bcdb-4fa4-92cc-cdc792fcfffd</AircraftId>
    <CoPilotPersonId>206bd3bd-1a5c-4dad-ba21-10ac28844b2d</CoPilotPersonId>
    <EngineEndOperatingCounterInSeconds>1</EngineEndOperatingCounterInSeconds>
    <EngineStartOperatingCounterInSeconds>1</EngineStartOperatingCounterInSeconds>
    <FlightComment>sample string 3</FlightComment>
    <FlightCostBalanceType>1</FlightCostBalanceType>
    <FlightDuration>PT0.1234567S</FlightDuration>
    <FlightId>2523c395-bccb-452e-b746-e0ebe7ab7a1b</FlightId>
    <FlightTypeId>30b27d49-222b-427a-8ff4-2af053ad5c95</FlightTypeId>
    <InboundRoute>sample string 9</InboundRoute>
    <InstructorPersonId>d104ddce-7837-4e0a-a88c-a66b8415f077</InstructorPersonId>
    <InvoiceRecipientPersonId>3f2c3973-b735-4f08-97c3-432654fb1cb2</InvoiceRecipientPersonId>
    <IsSoloFlight>true</IsSoloFlight>
    <LdgDateTime>2023-02-06T17:53:41.3621256+01:00</LdgDateTime>
    <LdgLocationId>67d002b7-dc28-471e-9c5a-a0dafe9f96ea</LdgLocationId>
    <NoLdgTimeInformation>true</NoLdgTimeInformation>
    <NoStartTimeInformation>true</NoStartTimeInformation>
    <NrOfLdgs>1</NrOfLdgs>
    <ObserverPersonId>fcaefed0-e6da-4748-981f-0b8393351705</ObserverPersonId>
    <OutboundRoute>sample string 8</OutboundRoute>
    <PilotPersonId>1da31fcb-c70f-492e-95e0-1d13d0de1c60</PilotPersonId>
    <ProcessStateId>5</ProcessStateId>
    <StartDateTime>2023-02-06T17:53:41.3621256+01:00</StartDateTime>
    <StartLocationId>79020bbd-10cb-44e0-b0e4-ea2c639ccd1a</StartLocationId>
    <ValidationErrors>sample string 12</ValidationErrors>
  </TowFlightDetailsData>
</FlightDetails>