POST api/Venue/EditStandardPrice

Request Information

URI Parameters

None.

Body Parameters

EditStandardPriceParem
NameDescriptionTypeAdditional information
RoomId

integer

None.

StandardPrices

Collection of RoomRateDetail

None.

IsRequireMinimumHour

boolean

None.

MinimumHour

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "roomId": 1,
  "standardPrices": [
    {
      "roomRateId": 1,
      "roomRateName": "sample string 2",
      "price": 3.0
    },
    {
      "roomRateId": 1,
      "roomRateName": "sample string 2",
      "price": 3.0
    }
  ],
  "isRequireMinimumHour": true,
  "minimumHour": 1.0
}

text/html

Sample:
{"roomId":1,"standardPrices":[{"roomRateId":1,"roomRateName":"sample string 2","price":3.0},{"roomRateId":1,"roomRateName":"sample string 2","price":3.0}],"isRequireMinimumHour":true,"minimumHour":1.0}

application/xml, text/xml

Sample:
<VenueController.EditStandardPriceParem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Api.Controllers">
  <IsRequireMinimumHour>true</IsRequireMinimumHour>
  <MinimumHour>1</MinimumHour>
  <RoomId>1</RoomId>
  <StandardPrices xmlns:d2p1="http://schemas.datacontract.org/2004/07/EB.Service.Services.Repositories.ModelRepositories">
    <d2p1:RoomRateDetail>
      <d2p1:Price>3</d2p1:Price>
      <d2p1:RoomRateId>1</d2p1:RoomRateId>
      <d2p1:RoomRateName>sample string 2</d2p1:RoomRateName>
    </d2p1:RoomRateDetail>
    <d2p1:RoomRateDetail>
      <d2p1:Price>3</d2p1:Price>
      <d2p1:RoomRateId>1</d2p1:RoomRateId>
      <d2p1:RoomRateName>sample string 2</d2p1:RoomRateName>
    </d2p1:RoomRateDetail>
  </StandardPrices>
</VenueController.EditStandardPriceParem>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APIResponse
NameDescriptionTypeAdditional information
Result

ApiResult

None.

Response Formats

application/json, text/json

Sample:
{
  "result": {
    "resultCode": 1,
    "resultMessage": "sample string 2"
  }
}

text/html

Sample:
{"result":{"resultCode":1,"resultMessage":"sample string 2"}}

application/xml, text/xml

Sample:
<CommonModels.APIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Api.Models">
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api">
    <d2p1:ResultCode>1</d2p1:ResultCode>
    <d2p1:ResultMessage>sample string 2</d2p1:ResultMessage>
  </Result>
</CommonModels.APIResponse>