PUT api/v1/locations/{locationId}
Updates the specified location.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| locationId |
The location identifier. |
globally unique identifier |
Required |
Body Parameters
The location details.
LocationDetails| Name | Description | Type | Additional 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
{
"LocationId": "2890c4a3-0564-47b5-ab7d-ac2d31995080",
"AirportFrequency": "sample string 2",
"CountryId": "ed3b7a7a-5a42-4246-ae0f-bb3058ff863d",
"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": "3ecf2f8f-7541-460e-a078-7f28cb1b6f51",
"Longitude": "sample string 10",
"RunwayDirection": "sample string 11",
"RunwayLength": 1,
"RunwayLengthUnitType": 1,
"IsInboundRouteRequired": true,
"IsOutboundRouteRequired": true,
"Id": "2890c4a3-0564-47b5-ab7d-ac2d31995080",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
{"LocationId":"2890c4a3-0564-47b5-ab7d-ac2d31995080","AirportFrequency":"sample string 2","CountryId":"ed3b7a7a-5a42-4246-ae0f-bb3058ff863d","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":"3ecf2f8f-7541-460e-a078-7f28cb1b6f51","Longitude":"sample string 10","RunwayDirection":"sample string 11","RunwayLength":1,"RunwayLengthUnitType":1,"IsInboundRouteRequired":true,"IsOutboundRouteRequired":true,"Id":"2890c4a3-0564-47b5-ab7d-ac2d31995080","CanUpdateRecord":true,"CanDeleteRecord":true}
application/xml, text/xml
<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">2890c4a3-0564-47b5-ab7d-ac2d31995080</Id> <AirportFrequency>sample string 2</AirportFrequency> <CountryId>ed3b7a7a-5a42-4246-ae0f-bb3058ff863d</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>2890c4a3-0564-47b5-ab7d-ac2d31995080</LocationId> <LocationName>sample string 7</LocationName> <LocationShortName>sample string 8</LocationShortName> <LocationTypeId>3ecf2f8f-7541-460e-a078-7f28cb1b6f51</LocationTypeId> <Longitude>sample string 10</Longitude> <RunwayDirection>sample string 11</RunwayDirection> <RunwayLength>1</RunwayLength> <RunwayLengthUnitType>1</RunwayLengthUnitType> </LocationDetails>
application/x-www-form-urlencoded
Response Information
Resource Description
LocationDetails| Name | Description | Type | Additional 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
{
"LocationId": "bc46c7e2-b638-4bd4-b882-49f76e7f1632",
"AirportFrequency": "sample string 2",
"CountryId": "9accc338-3be4-4def-a349-90eccfd81aa5",
"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": "caa611be-45ee-4a1a-9d09-74582ef6b468",
"Longitude": "sample string 10",
"RunwayDirection": "sample string 11",
"RunwayLength": 1,
"RunwayLengthUnitType": 1,
"IsInboundRouteRequired": true,
"IsOutboundRouteRequired": true,
"Id": "bc46c7e2-b638-4bd4-b882-49f76e7f1632",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
{"LocationId":"bc46c7e2-b638-4bd4-b882-49f76e7f1632","AirportFrequency":"sample string 2","CountryId":"9accc338-3be4-4def-a349-90eccfd81aa5","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":"caa611be-45ee-4a1a-9d09-74582ef6b468","Longitude":"sample string 10","RunwayDirection":"sample string 11","RunwayLength":1,"RunwayLengthUnitType":1,"IsInboundRouteRequired":true,"IsOutboundRouteRequired":true,"Id":"bc46c7e2-b638-4bd4-b882-49f76e7f1632","CanUpdateRecord":true,"CanDeleteRecord":true}
application/xml, text/xml
<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">bc46c7e2-b638-4bd4-b882-49f76e7f1632</Id> <AirportFrequency>sample string 2</AirportFrequency> <CountryId>9accc338-3be4-4def-a349-90eccfd81aa5</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>bc46c7e2-b638-4bd4-b882-49f76e7f1632</LocationId> <LocationName>sample string 7</LocationName> <LocationShortName>sample string 8</LocationShortName> <LocationTypeId>caa611be-45ee-4a1a-9d09-74582ef6b468</LocationTypeId> <Longitude>sample string 10</Longitude> <RunwayDirection>sample string 11</RunwayDirection> <RunwayLength>1</RunwayLength> <RunwayLengthUnitType>1</RunwayLengthUnitType> </LocationDetails>