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": "2bbff5ab-c1e6-4c82-8b4d-d21c02c824d2",
  "AirportFrequency": "sample string 2",
  "CountryId": "922baaf5-f42a-4118-9606-8d6db66b468a",
  "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": "3cf3f4e3-1c1b-4968-9a5e-6c24e42c23fe",
  "Longitude": "sample string 10",
  "RunwayDirection": "sample string 11",
  "RunwayLength": 1,
  "RunwayLengthUnitType": 1,
  "IsInboundRouteRequired": true,
  "IsOutboundRouteRequired": true,
  "Id": "2bbff5ab-c1e6-4c82-8b4d-d21c02c824d2",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"LocationId":"2bbff5ab-c1e6-4c82-8b4d-d21c02c824d2","AirportFrequency":"sample string 2","CountryId":"922baaf5-f42a-4118-9606-8d6db66b468a","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":"3cf3f4e3-1c1b-4968-9a5e-6c24e42c23fe","Longitude":"sample string 10","RunwayDirection":"sample string 11","RunwayLength":1,"RunwayLengthUnitType":1,"IsInboundRouteRequired":true,"IsOutboundRouteRequired":true,"Id":"2bbff5ab-c1e6-4c82-8b4d-d21c02c824d2","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">2bbff5ab-c1e6-4c82-8b4d-d21c02c824d2</Id>
  <AirportFrequency>sample string 2</AirportFrequency>
  <CountryId>922baaf5-f42a-4118-9606-8d6db66b468a</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>2bbff5ab-c1e6-4c82-8b4d-d21c02c824d2</LocationId>
  <LocationName>sample string 7</LocationName>
  <LocationShortName>sample string 8</LocationShortName>
  <LocationTypeId>3cf3f4e3-1c1b-4968-9a5e-6c24e42c23fe</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": "ab58c7fc-5309-42a4-bc1d-7810d8b0ef10",
  "AirportFrequency": "sample string 2",
  "CountryId": "dab3068b-04f5-4b1f-893c-8b618afff211",
  "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": "1a8afa16-3f11-45fa-91dd-e448f1944767",
  "Longitude": "sample string 10",
  "RunwayDirection": "sample string 11",
  "RunwayLength": 1,
  "RunwayLengthUnitType": 1,
  "IsInboundRouteRequired": true,
  "IsOutboundRouteRequired": true,
  "Id": "ab58c7fc-5309-42a4-bc1d-7810d8b0ef10",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"LocationId":"ab58c7fc-5309-42a4-bc1d-7810d8b0ef10","AirportFrequency":"sample string 2","CountryId":"dab3068b-04f5-4b1f-893c-8b618afff211","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":"1a8afa16-3f11-45fa-91dd-e448f1944767","Longitude":"sample string 10","RunwayDirection":"sample string 11","RunwayLength":1,"RunwayLengthUnitType":1,"IsInboundRouteRequired":true,"IsOutboundRouteRequired":true,"Id":"ab58c7fc-5309-42a4-bc1d-7810d8b0ef10","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">ab58c7fc-5309-42a4-bc1d-7810d8b0ef10</Id>
  <AirportFrequency>sample string 2</AirportFrequency>
  <CountryId>dab3068b-04f5-4b1f-893c-8b618afff211</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>ab58c7fc-5309-42a4-bc1d-7810d8b0ef10</LocationId>
  <LocationName>sample string 7</LocationName>
  <LocationShortName>sample string 8</LocationShortName>
  <LocationTypeId>1a8afa16-3f11-45fa-91dd-e448f1944767</LocationTypeId>
  <Longitude>sample string 10</Longitude>
  <RunwayDirection>sample string 11</RunwayDirection>
  <RunwayLength>1</RunwayLength>
  <RunwayLengthUnitType>1</RunwayLengthUnitType>
</LocationDetails>