PUT api/Project/Update?id={id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
ProjectBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
Required |
|
| Address | string |
None. |
|
| ProvinceId | integer |
None. |
|
| DistrictId | integer |
None. |
|
| WardId | integer |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
|
| ImageUrl | string |
None. |
|
| CategoryId | integer |
None. |
|
| PriceSale | decimal number |
None. |
|
| YearHandover | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"name": "sample string 1",
"address": "sample string 2",
"provinceId": 1,
"districtId": 1,
"wardId": 1,
"latitude": 1.1,
"longitude": 1.1,
"imageUrl": "sample string 3",
"categoryId": 1,
"priceSale": 4.0,
"yearHandover": 1
}
application/xml, text/xml
Sample:
<ProjectBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.Project"> <Address>sample string 2</Address> <CategoryId>1</CategoryId> <DistrictId>1</DistrictId> <ImageUrl>sample string 3</ImageUrl> <Latitude>1.1</Latitude> <Longitude>1.1</Longitude> <Name>sample string 1</Name> <PriceSale>4</PriceSale> <ProvinceId>1</ProvinceId> <WardId>1</WardId> <YearHandover>1</YearHandover> </ProjectBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.