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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

ProductDemandBinddingModel
NameDescriptionTypeAdditional information
CustomerId

integer

Required

ProvinceId

integer

Required

DistrictId

integer

Required

WardId

integer

Required

StreetId

integer

Required

ApartmentNo

string

None.

Address

string

None.

TypeId

integer

Required

ProjectId

integer

None.

Area

decimal number

Required

Title

string

None.

ProductId

integer

Required

IsSale

boolean

None.

Price

decimal number

None.

UnitId

byte

None.

TotalPrice

decimal number

None.

CommissionType

byte

Required

CommissionRate

decimal number

Required

CommissionValue

decimal number

Required

IsPublic

boolean

Required

EmployeeIdSale

integer

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

ImageUrl

string

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.

StatusId

integer

None.

SourceId

integer

None.

RoadId

integer

None.

LevelId

integer

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": 1,
  "area": 9.0,
  "title": "sample string 10",
  "productId": 11,
  "isSale": true,
  "price": 1.0,
  "unitId": 64,
  "totalPrice": 1.0,
  "commissionType": 64,
  "commissionRate": 14.0,
  "commissionValue": 15.0,
  "isPublic": true,
  "employeeIdSale": 17,
  "latitude": 1.1,
  "longitude": 1.1,
  "imageUrl": "sample string 18",
  "areaLand": 1.0,
  "horizontalLand": 1.0,
  "lenghtLand": 1.0,
  "areaBuild": 1.0,
  "horizontalBuild": 1.0,
  "lenghtBuild": 1.0,
  "livingroom": 64,
  "bedroom": 64,
  "toilet": 64,
  "highFloor": 1.0,
  "roadway": 1.0,
  "directionId": 1,
  "legalId": 1,
  "statusId": 1,
  "sourceId": 1,
  "roadId": 1,
  "levelId": 1
}

application/xml, text/xml

Sample:
<ProductDemandBinddingModel 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>9</Area>
  <AreaBuild>1</AreaBuild>
  <AreaLand>1</AreaLand>
  <Bedroom>64</Bedroom>
  <CommissionRate>14</CommissionRate>
  <CommissionType>64</CommissionType>
  <CommissionValue>15</CommissionValue>
  <CustomerId>1</CustomerId>
  <DirectionId>1</DirectionId>
  <DistrictId>3</DistrictId>
  <EmployeeIdSale>17</EmployeeIdSale>
  <HighFloor>1</HighFloor>
  <HorizontalBuild>1</HorizontalBuild>
  <HorizontalLand>1</HorizontalLand>
  <ImageUrl>sample string 18</ImageUrl>
  <IsPublic>true</IsPublic>
  <IsSale>true</IsSale>
  <Latitude>1.1</Latitude>
  <LegalId>1</LegalId>
  <LenghtBuild>1</LenghtBuild>
  <LenghtLand>1</LenghtLand>
  <LevelId>1</LevelId>
  <Livingroom>64</Livingroom>
  <Longitude>1.1</Longitude>
  <Price>1</Price>
  <ProductId>11</ProductId>
  <ProjectId>1</ProjectId>
  <ProvinceId>2</ProvinceId>
  <RoadId>1</RoadId>
  <Roadway>1</Roadway>
  <SourceId>1</SourceId>
  <StatusId>1</StatusId>
  <StreetId>5</StreetId>
  <Title>sample string 10</Title>
  <Toilet>64</Toilet>
  <TotalPrice>1</TotalPrice>
  <TypeId>8</TypeId>
  <UnitId>64</UnitId>
  <WardId>4</WardId>
</ProductDemandBinddingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TransferPermissionBinddingModel
NameDescriptionTypeAdditional information
ProductId

integer

Required

ProductDemandId

integer

Required

EmployeeIdOld

integer

Required

EmployeeIdNew

integer

Required

Description

string

Required

Response Formats

application/json, text/json

Sample:
{
  "productId": 1,
  "productDemandId": 2,
  "employeeIdOld": 3,
  "employeeIdNew": 4,
  "description": "sample string 5"
}

application/xml, text/xml

Sample:
<TransferPermissionBinddingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.Product">
  <Description>sample string 5</Description>
  <EmployeeIdNew>4</EmployeeIdNew>
  <EmployeeIdOld>3</EmployeeIdOld>
  <ProductDemandId>2</ProductDemandId>
  <ProductId>1</ProductId>
</TransferPermissionBinddingModel>