POST api/Venue/EditPlan

Request Information

URI Parameters

None.

Body Parameters

EditPlanModel
NameDescriptionTypeAdditional information
PlanId

integer

None.

RoomId

integer

None.

PlanName

string

None.

EffectiveDay

Collection of EffectiveDay

None.

EffectiveHour

TimeHour

None.

RoomRate

Collection of RoomRateDetail

None.

Status

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "planId": 1,
  "roomId": 2,
  "planName": "sample string 3",
  "effectiveDay": [
    {
      "dayId": 1,
      "day": "sample string 2",
      "status": 3
    },
    {
      "dayId": 1,
      "day": "sample string 2",
      "status": 3
    }
  ],
  "effectiveHour": {
    "startTime": "00:00:00.1234567",
    "stopTime": "00:00:00.1234567"
  },
  "roomRate": [
    {
      "roomRateId": 1,
      "roomRateName": "sample string 2",
      "price": 3.0
    },
    {
      "roomRateId": 1,
      "roomRateName": "sample string 2",
      "price": 3.0
    }
  ],
  "status": 4
}

text/html

Sample:
{"planId":1,"roomId":2,"planName":"sample string 3","effectiveDay":[{"dayId":1,"day":"sample string 2","status":3},{"dayId":1,"day":"sample string 2","status":3}],"effectiveHour":{"startTime":"00:00:00.1234567","stopTime":"00:00:00.1234567"},"roomRate":[{"roomRateId":1,"roomRateName":"sample string 2","price":3.0},{"roomRateId":1,"roomRateName":"sample string 2","price":3.0}],"status":4}

application/xml, text/xml

Sample:
<VenueController.EditPlanModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Api.Controllers">
  <EffectiveDay xmlns:d2p1="http://schemas.datacontract.org/2004/07/EB.Service.Services.Repositories.ModelRepositories" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.MeetingBananaApi">
    <d2p1:EffectiveDay>
      <d2p1:Day>sample string 2</d2p1:Day>
      <d2p1:DayId>1</d2p1:DayId>
      <d2p1:Status>3</d2p1:Status>
    </d2p1:EffectiveDay>
    <d2p1:EffectiveDay>
      <d2p1:Day>sample string 2</d2p1:Day>
      <d2p1:DayId>1</d2p1:DayId>
      <d2p1:Status>3</d2p1:Status>
    </d2p1:EffectiveDay>
  </EffectiveDay>
  <EffectiveHour xmlns:d2p1="http://schemas.datacontract.org/2004/07/EB.Service.Services.Repositories.ModelRepositories" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.MeetingBananaApi">
    <d2p1:StartTime>PT0.1234567S</d2p1:StartTime>
    <d2p1:StopTime>PT0.1234567S</d2p1:StopTime>
  </EffectiveHour>
  <PlanName xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.MeetingBananaApi">sample string 3</PlanName>
  <RoomId xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.MeetingBananaApi">2</RoomId>
  <RoomRate xmlns:d2p1="http://schemas.datacontract.org/2004/07/EB.Service.Services.Repositories.ModelRepositories" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.MeetingBananaApi">
    <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>
  </RoomRate>
  <Status xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.MeetingBananaApi">4</Status>
  <PlanId>1</PlanId>
</VenueController.EditPlanModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AddPlanResponse
NameDescriptionTypeAdditional information
Result

ApiResult

None.

PlanId

integer

None.

Response Formats

application/json, text/json

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

text/html

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

application/xml, text/xml

Sample:
<VenueController.AddPlanResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Api.Controllers">
  <PlanId>1</PlanId>
  <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>
</VenueController.AddPlanResponse>