POST api/v1/locations

Request Information

URI Parameters

None.

Body Parameters

LocationDetails
NameDescriptionTypeAdditional information
LocationId

globally unique identifier

None.

AirportFrequency

string

String length: inclusive between 0 and 50

CountryId

globally unique identifier

Required

Description

string

None.

Elevation

integer

None.

ElevationUnitType

integer

None.

IcaoCode

string

String length: inclusive between 0 and 10

Latitude

string

String length: inclusive between 0 and 10

LocationName

string

Required

String length: inclusive between 0 and 100

LocationShortName

string

String length: inclusive between 0 and 50

LocationTypeId

globally unique identifier

Required

Longitude

string

String length: inclusive between 0 and 10

RunwayDirection

string

String length: inclusive between 0 and 50

RunwayLength

integer

None.

RunwayLengthUnitType

integer

None.

IsInboundRouteRequired

boolean

None.

IsOutboundRouteRequired

boolean

None.

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "LocationId": "46ec5926-59d9-4b9b-923c-3f48b6cb89f6",
  "AirportFrequency": "sample string 2",
  "CountryId": "b408d579-f347-4896-80a7-d2c693630c43",
  "Description": "sample string 4",
  "Elevation": 1,
  "ElevationUnitType": 1,
  "IcaoCode": "sample string 5",
  "Latitude": "sample string 6",
  "LocationName": "sample string 7",
  "LocationShortName": "sample string 8",
  "LocationTypeId": "6f65a7fa-3a6f-4918-a590-b8e6fd8ffe21",
  "Longitude": "sample string 10",
  "RunwayDirection": "sample string 11",
  "RunwayLength": 1,
  "RunwayLengthUnitType": 1,
  "IsInboundRouteRequired": true,
  "IsOutboundRouteRequired": true,
  "Id": "46ec5926-59d9-4b9b-923c-3f48b6cb89f6",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"LocationId":"46ec5926-59d9-4b9b-923c-3f48b6cb89f6","AirportFrequency":"sample string 2","CountryId":"b408d579-f347-4896-80a7-d2c693630c43","Description":"sample string 4","Elevation":1,"ElevationUnitType":1,"IcaoCode":"sample string 5","Latitude":"sample string 6","LocationName":"sample string 7","LocationShortName":"sample string 8","LocationTypeId":"6f65a7fa-3a6f-4918-a590-b8e6fd8ffe21","Longitude":"sample string 10","RunwayDirection":"sample string 11","RunwayLength":1,"RunwayLengthUnitType":1,"IsInboundRouteRequired":true,"IsOutboundRouteRequired":true,"Id":"46ec5926-59d9-4b9b-923c-3f48b6cb89f6","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<LocationDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Location">
  <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">46ec5926-59d9-4b9b-923c-3f48b6cb89f6</Id>
  <AirportFrequency>sample string 2</AirportFrequency>
  <CountryId>b408d579-f347-4896-80a7-d2c693630c43</CountryId>
  <Description>sample string 4</Description>
  <Elevation>1</Elevation>
  <ElevationUnitType>1</ElevationUnitType>
  <IcaoCode>sample string 5</IcaoCode>
  <IsInboundRouteRequired>true</IsInboundRouteRequired>
  <IsOutboundRouteRequired>true</IsOutboundRouteRequired>
  <Latitude>sample string 6</Latitude>
  <LocationId>46ec5926-59d9-4b9b-923c-3f48b6cb89f6</LocationId>
  <LocationName>sample string 7</LocationName>
  <LocationShortName>sample string 8</LocationShortName>
  <LocationTypeId>6f65a7fa-3a6f-4918-a590-b8e6fd8ffe21</LocationTypeId>
  <Longitude>sample string 10</Longitude>
  <RunwayDirection>sample string 11</RunwayDirection>
  <RunwayLength>1</RunwayLength>
  <RunwayLengthUnitType>1</RunwayLengthUnitType>
</LocationDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

LocationDetails
NameDescriptionTypeAdditional information
LocationId

globally unique identifier

None.

AirportFrequency

string

String length: inclusive between 0 and 50

CountryId

globally unique identifier

Required

Description

string

None.

Elevation

integer

None.

ElevationUnitType

integer

None.

IcaoCode

string

String length: inclusive between 0 and 10

Latitude

string

String length: inclusive between 0 and 10

LocationName

string

Required

String length: inclusive between 0 and 100

LocationShortName

string

String length: inclusive between 0 and 50

LocationTypeId

globally unique identifier

Required

Longitude

string

String length: inclusive between 0 and 10

RunwayDirection

string

String length: inclusive between 0 and 50

RunwayLength

integer

None.

RunwayLengthUnitType

integer

None.

IsInboundRouteRequired

boolean

None.

IsOutboundRouteRequired

boolean

None.

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "LocationId": "9a325641-f1a3-45c7-b3b3-cbd0c0441a08",
  "AirportFrequency": "sample string 2",
  "CountryId": "c5f09fda-aca9-4439-bcdb-d2ee4ffe520d",
  "Description": "sample string 4",
  "Elevation": 1,
  "ElevationUnitType": 1,
  "IcaoCode": "sample string 5",
  "Latitude": "sample string 6",
  "LocationName": "sample string 7",
  "LocationShortName": "sample string 8",
  "LocationTypeId": "dfcec54d-3c58-4b98-813e-9737d6b05e13",
  "Longitude": "sample string 10",
  "RunwayDirection": "sample string 11",
  "RunwayLength": 1,
  "RunwayLengthUnitType": 1,
  "IsInboundRouteRequired": true,
  "IsOutboundRouteRequired": true,
  "Id": "9a325641-f1a3-45c7-b3b3-cbd0c0441a08",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"LocationId":"9a325641-f1a3-45c7-b3b3-cbd0c0441a08","AirportFrequency":"sample string 2","CountryId":"c5f09fda-aca9-4439-bcdb-d2ee4ffe520d","Description":"sample string 4","Elevation":1,"ElevationUnitType":1,"IcaoCode":"sample string 5","Latitude":"sample string 6","LocationName":"sample string 7","LocationShortName":"sample string 8","LocationTypeId":"dfcec54d-3c58-4b98-813e-9737d6b05e13","Longitude":"sample string 10","RunwayDirection":"sample string 11","RunwayLength":1,"RunwayLengthUnitType":1,"IsInboundRouteRequired":true,"IsOutboundRouteRequired":true,"Id":"9a325641-f1a3-45c7-b3b3-cbd0c0441a08","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<LocationDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Location">
  <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">9a325641-f1a3-45c7-b3b3-cbd0c0441a08</Id>
  <AirportFrequency>sample string 2</AirportFrequency>
  <CountryId>c5f09fda-aca9-4439-bcdb-d2ee4ffe520d</CountryId>
  <Description>sample string 4</Description>
  <Elevation>1</Elevation>
  <ElevationUnitType>1</ElevationUnitType>
  <IcaoCode>sample string 5</IcaoCode>
  <IsInboundRouteRequired>true</IsInboundRouteRequired>
  <IsOutboundRouteRequired>true</IsOutboundRouteRequired>
  <Latitude>sample string 6</Latitude>
  <LocationId>9a325641-f1a3-45c7-b3b3-cbd0c0441a08</LocationId>
  <LocationName>sample string 7</LocationName>
  <LocationShortName>sample string 8</LocationShortName>
  <LocationTypeId>dfcec54d-3c58-4b98-813e-9737d6b05e13</LocationTypeId>
  <Longitude>sample string 10</Longitude>
  <RunwayDirection>sample string 11</RunwayDirection>
  <RunwayLength>1</RunwayLength>
  <RunwayLengthUnitType>1</RunwayLengthUnitType>
</LocationDetails>