PUT api/Places/Edit?id={id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
UpdatePlaceBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
|
| IsPopular | boolean |
None. |
|
| Name | string |
Required String length: inclusive between 0 and 100 |
|
| Address | string |
Required String length: inclusive between 0 and 1000 |
|
| Code | string |
Required String length: inclusive between 0 and 10 |
|
| CityId | string |
Required String length: inclusive between 0 and 112 |
|
| PlaceType | string |
Required String length: inclusive between 0 and 30 |
|
| AddressObject | PostAddressBindingModel |
Required |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"IsPopular": true,
"Name": "sample string 3",
"Address": "sample string 4",
"Code": "sample string 5",
"CityId": "sample string 6",
"PlaceType": "sample string 7",
"AddressObject": {
"Id": 1,
"Address1": "sample string 1",
"Address2": "sample string 2",
"Address3": "sample string 3",
"Landmark": "sample string 4",
"PostalCode": "sample string 5",
"AreaId": "sample string 6"
}
}
application/xml, text/xml
Sample:
<UpdatePlaceBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
<Address>sample string 4</Address>
<AddressObject>
<Address1>sample string 1</Address1>
<Address2>sample string 2</Address2>
<Address3>sample string 3</Address3>
<AreaId>sample string 6</AreaId>
<Landmark>sample string 4</Landmark>
<PostalCode>sample string 5</PostalCode>
<Id>1</Id>
</AddressObject>
<CityId>sample string 6</CityId>
<Code>sample string 5</Code>
<IsPopular>false</IsPopular>
<Name>sample string 3</Name>
<PlaceType>sample string 7</PlaceType>
<Id>1</Id>
<IsPopular>true</IsPopular>
</UpdatePlaceBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.