PUT api/role/{id}/updateprice

Update price for a given PropertySalesRole.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

the id of the role

integer

Required

Body Parameters

UpdatePriceDataContract

UpdatePriceDataContract
NameDescriptionTypeAdditional information
AskingPrice

decimal number

None.

PriceType

EnumDataContract

None.

PriceText

string

None.

PriceQualifierType

EnumDataContract

None.

MarkAsReduced

boolean

None.

PriceOnApplication

boolean

None.

HomeReportPrice

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "AskingPrice": 1.1,
  "PriceType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "PriceText": "sample string 2",
  "PriceQualifierType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "MarkAsReduced": true,
  "PriceOnApplication": true,
  "HomeReportPrice": 1.1
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

UpdatePropertyPriceResponseDataContract
NameDescriptionTypeAdditional information
PriceChangeEventId

integer

None.

NewPrice

decimal number

None.

OldPrice

decimal number

None.

NewPriceType

EnumDataContract

None.

OldPriceType

EnumDataContract

None.

IsSuccessful

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "PriceChangeEventId": 1,
  "NewPrice": 1.1,
  "OldPrice": 2.1,
  "NewPriceType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "OldPriceType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "IsSuccessful": true
}