POST api/plan/flights/save

Request Information

URI Parameters

None.

Body Parameters

FlightPlanSaveDto
NameDescriptionTypeAdditional information
updated

Collection of FlightPlanDto

None.

deleted

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "updated": [
    {
      "ID": 1,
      "Register": "sample string 2",
      "RegisterID": 1,
      "FromAirport": 1,
      "ToAirport": 1,
      "FromAirportIATA": "sample string 3",
      "ToAirportIATA": "sample string 4",
      "STD": "2025-10-26T16:55:06.8030458+03:30",
      "STD2": "sample string 5",
      "STDLocal": "2025-10-26T16:55:06.8030458+03:30",
      "STDLocal2": "sample string 6",
      "STA": "2025-10-26T16:55:06.8030458+03:30",
      "STA2": "sample string 7",
      "STALocal": "2025-10-26T16:55:06.8030458+03:30",
      "STALocal2": "sample string 8",
      "STDDay": "2025-10-26T16:55:06.8030458+03:30",
      "STDDay2": "sample string 9",
      "FlightNumber": "sample string 10"
    },
    {
      "ID": 1,
      "Register": "sample string 2",
      "RegisterID": 1,
      "FromAirport": 1,
      "ToAirport": 1,
      "FromAirportIATA": "sample string 3",
      "ToAirportIATA": "sample string 4",
      "STD": "2025-10-26T16:55:06.8030458+03:30",
      "STD2": "sample string 5",
      "STDLocal": "2025-10-26T16:55:06.8030458+03:30",
      "STDLocal2": "sample string 6",
      "STA": "2025-10-26T16:55:06.8030458+03:30",
      "STA2": "sample string 7",
      "STALocal": "2025-10-26T16:55:06.8030458+03:30",
      "STALocal2": "sample string 8",
      "STDDay": "2025-10-26T16:55:06.8030458+03:30",
      "STDDay2": "sample string 9",
      "FlightNumber": "sample string 10"
    }
  ],
  "deleted": [
    1,
    2
  ]
}

text/html

Sample:
{"updated":[{"ID":1,"Register":"sample string 2","RegisterID":1,"FromAirport":1,"ToAirport":1,"FromAirportIATA":"sample string 3","ToAirportIATA":"sample string 4","STD":"2025-10-26T16:55:06.8030458+03:30","STD2":"sample string 5","STDLocal":"2025-10-26T16:55:06.8030458+03:30","STDLocal2":"sample string 6","STA":"2025-10-26T16:55:06.8030458+03:30","STA2":"sample string 7","STALocal":"2025-10-26T16:55:06.8030458+03:30","STALocal2":"sample string 8","STDDay":"2025-10-26T16:55:06.8030458+03:30","STDDay2":"sample string 9","FlightNumber":"sample string 10"},{"ID":1,"Register":"sample string 2","RegisterID":1,"FromAirport":1,"ToAirport":1,"FromAirportIATA":"sample string 3","ToAirportIATA":"sample string 4","STD":"2025-10-26T16:55:06.8030458+03:30","STD2":"sample string 5","STDLocal":"2025-10-26T16:55:06.8030458+03:30","STDLocal2":"sample string 6","STA":"2025-10-26T16:55:06.8030458+03:30","STA2":"sample string 7","STALocal":"2025-10-26T16:55:06.8030458+03:30","STALocal2":"sample string 8","STDDay":"2025-10-26T16:55:06.8030458+03:30","STDDay2":"sample string 9","FlightNumber":"sample string 10"}],"deleted":[1,2]}

application/xml, text/xml

Sample:
<LogController.FlightPlanSaveDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiLog.Controllers">
  <deleted xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </deleted>
  <updated>
    <LogController.FlightPlanDto>
      <FlightNumber>sample string 10</FlightNumber>
      <FromAirport>1</FromAirport>
      <FromAirportIATA>sample string 3</FromAirportIATA>
      <ID>1</ID>
      <Register>sample string 2</Register>
      <RegisterID>1</RegisterID>
      <STA>2025-10-26T16:55:06.8030458+03:30</STA>
      <STA2>sample string 7</STA2>
      <STALocal>2025-10-26T16:55:06.8030458+03:30</STALocal>
      <STALocal2>sample string 8</STALocal2>
      <STD>2025-10-26T16:55:06.8030458+03:30</STD>
      <STD2>sample string 5</STD2>
      <STDDay>2025-10-26T16:55:06.8030458+03:30</STDDay>
      <STDDay2>sample string 9</STDDay2>
      <STDLocal>2025-10-26T16:55:06.8030458+03:30</STDLocal>
      <STDLocal2>sample string 6</STDLocal2>
      <ToAirport>1</ToAirport>
      <ToAirportIATA>sample string 4</ToAirportIATA>
    </LogController.FlightPlanDto>
    <LogController.FlightPlanDto>
      <FlightNumber>sample string 10</FlightNumber>
      <FromAirport>1</FromAirport>
      <FromAirportIATA>sample string 3</FromAirportIATA>
      <ID>1</ID>
      <Register>sample string 2</Register>
      <RegisterID>1</RegisterID>
      <STA>2025-10-26T16:55:06.8030458+03:30</STA>
      <STA2>sample string 7</STA2>
      <STALocal>2025-10-26T16:55:06.8030458+03:30</STALocal>
      <STALocal2>sample string 8</STALocal2>
      <STD>2025-10-26T16:55:06.8030458+03:30</STD>
      <STD2>sample string 5</STD2>
      <STDDay>2025-10-26T16:55:06.8030458+03:30</STDDay>
      <STDDay2>sample string 9</STDDay2>
      <STDLocal>2025-10-26T16:55:06.8030458+03:30</STDLocal>
      <STDLocal2>sample string 6</STDLocal2>
      <ToAirport>1</ToAirport>
      <ToAirportIATA>sample string 4</ToAirportIATA>
    </LogController.FlightPlanDto>
  </updated>
</LogController.FlightPlanSaveDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.