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": "5a4bf4ff-9634-4dde-a6c1-e25068873079",
  "AirportFrequency": "sample string 2",
  "CountryId": "6032393a-4e39-4830-82db-5b08a355544a",
  "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": "4cc2f0e3-9ee4-4e98-9ad0-53f93fd2d19e",
  "Longitude": "sample string 10",
  "RunwayDirection": "sample string 11",
  "RunwayLength": 1,
  "RunwayLengthUnitType": 1,
  "IsInboundRouteRequired": true,
  "IsOutboundRouteRequired": true,
  "Id": "5a4bf4ff-9634-4dde-a6c1-e25068873079",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"LocationId":"5a4bf4ff-9634-4dde-a6c1-e25068873079","AirportFrequency":"sample string 2","CountryId":"6032393a-4e39-4830-82db-5b08a355544a","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":"4cc2f0e3-9ee4-4e98-9ad0-53f93fd2d19e","Longitude":"sample string 10","RunwayDirection":"sample string 11","RunwayLength":1,"RunwayLengthUnitType":1,"IsInboundRouteRequired":true,"IsOutboundRouteRequired":true,"Id":"5a4bf4ff-9634-4dde-a6c1-e25068873079","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">5a4bf4ff-9634-4dde-a6c1-e25068873079</Id>
  <AirportFrequency>sample string 2</AirportFrequency>
  <CountryId>6032393a-4e39-4830-82db-5b08a355544a</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>5a4bf4ff-9634-4dde-a6c1-e25068873079</LocationId>
  <LocationName>sample string 7</LocationName>
  <LocationShortName>sample string 8</LocationShortName>
  <LocationTypeId>4cc2f0e3-9ee4-4e98-9ad0-53f93fd2d19e</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": "76acdcdc-34f4-45a6-a83b-1d8899b9897b",
  "AirportFrequency": "sample string 2",
  "CountryId": "22790304-29ad-4e12-8338-6d5cc2bce640",
  "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": "b98ab511-15e8-4f54-8fc5-4bf51bb17a9c",
  "Longitude": "sample string 10",
  "RunwayDirection": "sample string 11",
  "RunwayLength": 1,
  "RunwayLengthUnitType": 1,
  "IsInboundRouteRequired": true,
  "IsOutboundRouteRequired": true,
  "Id": "76acdcdc-34f4-45a6-a83b-1d8899b9897b",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"LocationId":"76acdcdc-34f4-45a6-a83b-1d8899b9897b","AirportFrequency":"sample string 2","CountryId":"22790304-29ad-4e12-8338-6d5cc2bce640","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":"b98ab511-15e8-4f54-8fc5-4bf51bb17a9c","Longitude":"sample string 10","RunwayDirection":"sample string 11","RunwayLength":1,"RunwayLengthUnitType":1,"IsInboundRouteRequired":true,"IsOutboundRouteRequired":true,"Id":"76acdcdc-34f4-45a6-a83b-1d8899b9897b","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">76acdcdc-34f4-45a6-a83b-1d8899b9897b</Id>
  <AirportFrequency>sample string 2</AirportFrequency>
  <CountryId>22790304-29ad-4e12-8338-6d5cc2bce640</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>76acdcdc-34f4-45a6-a83b-1d8899b9897b</LocationId>
  <LocationName>sample string 7</LocationName>
  <LocationShortName>sample string 8</LocationShortName>
  <LocationTypeId>b98ab511-15e8-4f54-8fc5-4bf51bb17a9c</LocationTypeId>
  <Longitude>sample string 10</Longitude>
  <RunwayDirection>sample string 11</RunwayDirection>
  <RunwayLength>1</RunwayLength>
  <RunwayLengthUnitType>1</RunwayLengthUnitType>
</LocationDetails>