PUT api/city/UpdateCity?id={id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
City| Name | Description | Type | Additional information |
|---|---|---|---|
| CityID | integer |
None. |
|
| CityName | string |
Required String length: inclusive between 0 and 50 |
|
| StateName | string |
Required String length: inclusive between 0 and 50 |
|
| CountryName | string |
Required String length: inclusive between 0 and 50 |
|
| UserName | string |
Required String length: inclusive between 0 and 50 |
Request Formats
application/json, text/json
Sample:
{
"CityID": 1,
"CityName": "sample string 2",
"StateName": "sample string 3",
"CountryName": "sample string 4",
"UserName": "sample string 5"
}
application/xml, text/xml
Sample:
<City xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MDMWebAPI.Models"> <CityID>1</CityID> <CityName>sample string 2</CityName> <CountryName>sample string 4</CountryName> <StateName>sample string 3</StateName> <UserName>sample string 5</UserName> </City>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |