PUT api/Airports/{id}
Updates an existing airport.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The ID of the airport to update. |
integer |
Required |
Body Parameters
The airport object with updated data.
AirportName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
IATA | string |
None. |
|
Name | string |
None. |
|
City | string |
None. |
|
Country | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "IATA": "sample string 2", "Name": "sample string 3", "City": "sample string 4", "Country": "sample string 5" }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
An HTTP response indicating the result of the update operation.
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.