PUT api/Airports/{id}

Updates an existing airport.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the airport to update.

integer

Required

Body Parameters

The airport object with updated data.

Airport
NameDescriptionTypeAdditional 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.

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.