PUT api/role/{id}/updateprice

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UpdatePriceDataContract'.

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
}