POST api/Venue/AddPlan

Request Information

URI Parameters

None.

Body Parameters

Plan
NameDescriptionTypeAdditional information
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:
{
  "roomId": 1,
  "planName": "sample string 2",
  "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": 3
}

text/html

Sample:
{"roomId":1,"planName":"sample string 2","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":3}

application/xml, text/xml

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

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>