POST api/Venue/AddVenueOpenHours

Request Information

URI Parameters

None.

Body Parameters

VenueOpenHoursFromBody
NameDescriptionTypeAdditional information
VenueId

integer

None.

VenueOpenHours

Collection of VenueOpenHour

None.

Request Formats

application/json, text/json

Sample:
{
  "venueId": 1,
  "venueOpenHours": [
    {
      "dayId": 1,
      "day": "sample string 2",
      "status": 3,
      "openTime": "00:00:00.1234567",
      "closeTime": "00:00:00.1234567"
    },
    {
      "dayId": 1,
      "day": "sample string 2",
      "status": 3,
      "openTime": "00:00:00.1234567",
      "closeTime": "00:00:00.1234567"
    }
  ]
}

text/html

Sample:
{"venueId":1,"venueOpenHours":[{"dayId":1,"day":"sample string 2","status":3,"openTime":"00:00:00.1234567","closeTime":"00:00:00.1234567"},{"dayId":1,"day":"sample string 2","status":3,"openTime":"00:00:00.1234567","closeTime":"00:00:00.1234567"}]}

application/xml, text/xml

Sample:
<VenueOpenHoursFromBody xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Services.Repositories.ModelRepositories">
  <VenueId>1</VenueId>
  <VenueOpenHours>
    <VenueOpenHour>
      <CloseTime>PT0.1234567S</CloseTime>
      <Day>sample string 2</Day>
      <DayId>1</DayId>
      <OpenTime>PT0.1234567S</OpenTime>
      <Status>3</Status>
    </VenueOpenHour>
    <VenueOpenHour>
      <CloseTime>PT0.1234567S</CloseTime>
      <Day>sample string 2</Day>
      <DayId>1</DayId>
      <OpenTime>PT0.1234567S</OpenTime>
      <Status>3</Status>
    </VenueOpenHour>
  </VenueOpenHours>
</VenueOpenHoursFromBody>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResult
NameDescriptionTypeAdditional information
ResultCode

integer

None.

ResultMessage

string

None.

Response Formats

application/json, text/json

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

text/html

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

application/xml, text/xml

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