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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

CustomerDemandBindingModel
NameDescriptionTypeAdditional information
CustomerId

integer

Required

IsBuy

boolean

Required

ProjectId

integer

None.

ProvinceId

integer

Required

DistrictListId

string

None.

DistrictListName

string

None.

WardListId

string

None.

WardListName

string

None.

DirectionListId

string

None.

DirectionListName

string

None.

TypeId

integer

Required

RoadId

integer

None.

AreaFrom

decimal number

None.

AreaTo

decimal number

None.

LengthFrom

integer

None.

LengthTo

integer

None.

FloorFrom

byte

None.

FloorTo

byte

None.

LivingroomFrom

byte

None.

LivingroomTo

byte

None.

BedroomFrom

byte

None.

BedroomTo

byte

None.

ToiletFrom

byte

None.

ToiletTo

byte

None.

UnitPrice

byte

None.

PriceFrom

decimal number

None.

PriceTo

decimal number

None.

CommissionRate

decimal number

None.

CommissionValue

decimal number

None.

CommissionType

byte

None.

ShortDescription

string

None.

DemandId

globally unique identifier

None.

LegalId

integer

None.

SourceId

integer

None.

LevelId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "customerId": 1,
  "isBuy": true,
  "projectId": 1,
  "provinceId": 3,
  "districtListId": "sample string 4",
  "districtListName": "sample string 5",
  "wardListId": "sample string 6",
  "wardListName": "sample string 7",
  "directionListId": "sample string 8",
  "directionListName": "sample string 9",
  "typeId": 10,
  "roadId": 1,
  "areaFrom": 1.0,
  "areaTo": 1.0,
  "lengthFrom": 1,
  "lengthTo": 1,
  "floorFrom": 64,
  "floorTo": 64,
  "livingroomFrom": 64,
  "livingroomTo": 64,
  "bedroomFrom": 64,
  "bedroomTo": 64,
  "toiletFrom": 64,
  "toiletTo": 64,
  "unitPrice": 64,
  "priceFrom": 1.0,
  "priceTo": 1.0,
  "commissionRate": 1.0,
  "commissionValue": 1.0,
  "commissionType": 64,
  "shortDescription": "sample string 11",
  "demandId": "808a3b30-9e06-4e99-a7f4-6b7524514d51",
  "legalId": 1,
  "sourceId": 1,
  "levelId": 1
}

application/xml, text/xml

Sample:
<CustomerDemandBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.Customer">
  <AreaFrom>1</AreaFrom>
  <AreaTo>1</AreaTo>
  <BedroomFrom>64</BedroomFrom>
  <BedroomTo>64</BedroomTo>
  <CommissionRate>1</CommissionRate>
  <CommissionType>64</CommissionType>
  <CommissionValue>1</CommissionValue>
  <CustomerId>1</CustomerId>
  <DemandId>808a3b30-9e06-4e99-a7f4-6b7524514d51</DemandId>
  <DirectionListId>sample string 8</DirectionListId>
  <DirectionListName>sample string 9</DirectionListName>
  <DistrictListId>sample string 4</DistrictListId>
  <DistrictListName>sample string 5</DistrictListName>
  <FloorFrom>64</FloorFrom>
  <FloorTo>64</FloorTo>
  <IsBuy>true</IsBuy>
  <LegalId>1</LegalId>
  <LengthFrom>1</LengthFrom>
  <LengthTo>1</LengthTo>
  <LevelId>1</LevelId>
  <LivingroomFrom>64</LivingroomFrom>
  <LivingroomTo>64</LivingroomTo>
  <PriceFrom>1</PriceFrom>
  <PriceTo>1</PriceTo>
  <ProjectId>1</ProjectId>
  <ProvinceId>3</ProvinceId>
  <RoadId>1</RoadId>
  <ShortDescription>sample string 11</ShortDescription>
  <SourceId>1</SourceId>
  <ToiletFrom>64</ToiletFrom>
  <ToiletTo>64</ToiletTo>
  <TypeId>10</TypeId>
  <UnitPrice>64</UnitPrice>
  <WardListId>sample string 6</WardListId>
  <WardListName>sample string 7</WardListName>
</CustomerDemandBindingModel>

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.