PUT api/Products/Update?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

ProductBindingModel
NameDescriptionTypeAdditional information
CustomerId

integer

Required

ProvinceId

integer

Required

DistrictId

integer

Required

WardId

integer

None.

StreetId

integer

Required

ApartmentNo

string

Required

Address

string

None.

TypeId

integer

Required

ProjectId

integer

None.

Area

decimal number

Required

Price

decimal number

None.

TotalPrice

decimal number

None.

PriceOriginal

decimal number

None.

AreaLand

decimal number

None.

HorizontalLand

decimal number

None.

LenghtLand

decimal number

None.

AreaBuild

decimal number

None.

HorizontalBuild

decimal number

None.

LenghtBuild

decimal number

None.

Livingroom

byte

None.

Bedroom

byte

None.

Toilet

byte

None.

HighFloor

decimal number

None.

Roadway

decimal number

None.

DirectionId

integer

None.

LegalId

integer

None.

SourceId

integer

None.

ImageUrl

string

None.

Title

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Description

string

None.

Structure

string

None.

StatusQuo

string

None.

FeatureHighlight

string

None.

RoadId

integer

None.

LevelId

integer

None.

IsInvest

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "customerId": 1,
  "provinceId": 2,
  "districtId": 3,
  "wardId": 4,
  "streetId": 5,
  "apartmentNo": "sample string 6",
  "address": "sample string 7",
  "typeId": 8,
  "projectId": 9,
  "area": 10.0,
  "price": 11.0,
  "totalPrice": 12.0,
  "priceOriginal": 13.0,
  "areaLand": 14.0,
  "horizontalLand": 15.0,
  "lenghtLand": 16.0,
  "areaBuild": 17.0,
  "horizontalBuild": 18.0,
  "lenghtBuild": 19.0,
  "livingroom": 64,
  "bedroom": 64,
  "toilet": 64,
  "highFloor": 23.0,
  "roadway": 24.0,
  "directionId": 25,
  "legalId": 26,
  "sourceId": 27,
  "imageUrl": "sample string 28",
  "title": "sample string 29",
  "latitude": 30.1,
  "longitude": 31.1,
  "description": "sample string 32",
  "structure": "sample string 33",
  "statusQuo": "sample string 34",
  "featureHighlight": "sample string 35",
  "roadId": 1,
  "levelId": 1,
  "isInvest": true
}

application/xml, text/xml

Sample:
<ProductBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.Product">
  <Address>sample string 7</Address>
  <ApartmentNo>sample string 6</ApartmentNo>
  <Area>10</Area>
  <AreaBuild>17</AreaBuild>
  <AreaLand>14</AreaLand>
  <Bedroom>64</Bedroom>
  <CustomerId>1</CustomerId>
  <Description>sample string 32</Description>
  <DirectionId>25</DirectionId>
  <DistrictId>3</DistrictId>
  <FeatureHighlight>sample string 35</FeatureHighlight>
  <HighFloor>23</HighFloor>
  <HorizontalBuild>18</HorizontalBuild>
  <HorizontalLand>15</HorizontalLand>
  <ImageUrl>sample string 28</ImageUrl>
  <IsInvest>true</IsInvest>
  <Latitude>30.1</Latitude>
  <LegalId>26</LegalId>
  <LenghtBuild>19</LenghtBuild>
  <LenghtLand>16</LenghtLand>
  <LevelId>1</LevelId>
  <Livingroom>64</Livingroom>
  <Longitude>31.1</Longitude>
  <Price>11</Price>
  <PriceOriginal>13</PriceOriginal>
  <ProjectId>9</ProjectId>
  <ProvinceId>2</ProvinceId>
  <RoadId>1</RoadId>
  <Roadway>24</Roadway>
  <SourceId>27</SourceId>
  <StatusQuo>sample string 34</StatusQuo>
  <StreetId>5</StreetId>
  <Structure>sample string 33</Structure>
  <Title>sample string 29</Title>
  <Toilet>64</Toilet>
  <TotalPrice>12</TotalPrice>
  <TypeId>8</TypeId>
  <WardId>4</WardId>
</ProductBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.