POST api/Catering/UpdateOperationHourAndHoliday

Request Information

URI Parameters

None.

Body Parameters

RestaurantOperationHourAndHoliday
NameDescriptionTypeAdditional information
RestaurantId

integer

None.

RestaurantHolidays

Collection of RestaurantHolidayView

None.

RestaurantOperationHours

Collection of RestaurantOperationHourView

None.

Request Formats

application/json, text/json

Sample:
{
  "restaurantId": 1,
  "restaurantHolidays": [
    {
      "id": 1,
      "holiday": "2025-08-29T01:17:52.0372014+00:00",
      "remarks": "sample string 3",
      "idTemp": 4
    },
    {
      "id": 1,
      "holiday": "2025-08-29T01:17:52.0372014+00:00",
      "remarks": "sample string 3",
      "idTemp": 4
    }
  ],
  "restaurantOperationHours": [
    {
      "id": 1,
      "day": 0,
      "dayText": "sample string 2",
      "openTime": "00:00:00.1234567",
      "closeTime": "00:00:00.1234567",
      "status": 0
    },
    {
      "id": 1,
      "day": 0,
      "dayText": "sample string 2",
      "openTime": "00:00:00.1234567",
      "closeTime": "00:00:00.1234567",
      "status": 0
    }
  ]
}

text/html

Sample:
{"restaurantId":1,"restaurantHolidays":[{"id":1,"holiday":"2025-08-29T01:17:52.0372014+00:00","remarks":"sample string 3","idTemp":4},{"id":1,"holiday":"2025-08-29T01:17:52.0372014+00:00","remarks":"sample string 3","idTemp":4}],"restaurantOperationHours":[{"id":1,"day":0,"dayText":"sample string 2","openTime":"00:00:00.1234567","closeTime":"00:00:00.1234567","status":0},{"id":1,"day":0,"dayText":"sample string 2","openTime":"00:00:00.1234567","closeTime":"00:00:00.1234567","status":0}]}

application/xml, text/xml

Sample:
<RestaurantOperationHourAndHoliday xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api">
  <RestaurantHolidays>
    <RestaurantHolidayView>
      <Holiday>2025-08-29T01:17:52.0372014+00:00</Holiday>
      <Id>1</Id>
      <Remarks>sample string 3</Remarks>
      <idTemp>4</idTemp>
    </RestaurantHolidayView>
    <RestaurantHolidayView>
      <Holiday>2025-08-29T01:17:52.0372014+00:00</Holiday>
      <Id>1</Id>
      <Remarks>sample string 3</Remarks>
      <idTemp>4</idTemp>
    </RestaurantHolidayView>
  </RestaurantHolidays>
  <RestaurantId>1</RestaurantId>
  <RestaurantOperationHours>
    <RestaurantOperationHourView>
      <CloseTime>PT0.1234567S</CloseTime>
      <Day>Sunday</Day>
      <DayText>sample string 2</DayText>
      <Id>1</Id>
      <OpenTime>PT0.1234567S</OpenTime>
      <Status>Close</Status>
    </RestaurantOperationHourView>
    <RestaurantOperationHourView>
      <CloseTime>PT0.1234567S</CloseTime>
      <Day>Sunday</Day>
      <DayText>sample string 2</DayText>
      <Id>1</Id>
      <OpenTime>PT0.1234567S</OpenTime>
      <Status>Close</Status>
    </RestaurantOperationHourView>
  </RestaurantOperationHours>
</RestaurantOperationHourAndHoliday>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RestaurantOperationHourAndHoliday
NameDescriptionTypeAdditional information
RestaurantId

integer

None.

RestaurantHolidays

Collection of RestaurantHolidayView

None.

RestaurantOperationHours

Collection of RestaurantOperationHourView

None.

Response Formats

application/json, text/json

Sample:
{
  "restaurantId": 1,
  "restaurantHolidays": [
    {
      "id": 1,
      "holiday": "2025-08-29T01:17:52.0372014+00:00",
      "remarks": "sample string 3",
      "idTemp": 4
    },
    {
      "id": 1,
      "holiday": "2025-08-29T01:17:52.0372014+00:00",
      "remarks": "sample string 3",
      "idTemp": 4
    }
  ],
  "restaurantOperationHours": [
    {
      "id": 1,
      "day": 0,
      "dayText": "sample string 2",
      "openTime": "00:00:00.1234567",
      "closeTime": "00:00:00.1234567",
      "status": 0
    },
    {
      "id": 1,
      "day": 0,
      "dayText": "sample string 2",
      "openTime": "00:00:00.1234567",
      "closeTime": "00:00:00.1234567",
      "status": 0
    }
  ]
}

text/html

Sample:
{"restaurantId":1,"restaurantHolidays":[{"id":1,"holiday":"2025-08-29T01:17:52.0372014+00:00","remarks":"sample string 3","idTemp":4},{"id":1,"holiday":"2025-08-29T01:17:52.0372014+00:00","remarks":"sample string 3","idTemp":4}],"restaurantOperationHours":[{"id":1,"day":0,"dayText":"sample string 2","openTime":"00:00:00.1234567","closeTime":"00:00:00.1234567","status":0},{"id":1,"day":0,"dayText":"sample string 2","openTime":"00:00:00.1234567","closeTime":"00:00:00.1234567","status":0}]}

application/xml, text/xml

Sample:
<RestaurantOperationHourAndHoliday xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api">
  <RestaurantHolidays>
    <RestaurantHolidayView>
      <Holiday>2025-08-29T01:17:52.0372014+00:00</Holiday>
      <Id>1</Id>
      <Remarks>sample string 3</Remarks>
      <idTemp>4</idTemp>
    </RestaurantHolidayView>
    <RestaurantHolidayView>
      <Holiday>2025-08-29T01:17:52.0372014+00:00</Holiday>
      <Id>1</Id>
      <Remarks>sample string 3</Remarks>
      <idTemp>4</idTemp>
    </RestaurantHolidayView>
  </RestaurantHolidays>
  <RestaurantId>1</RestaurantId>
  <RestaurantOperationHours>
    <RestaurantOperationHourView>
      <CloseTime>PT0.1234567S</CloseTime>
      <Day>Sunday</Day>
      <DayText>sample string 2</DayText>
      <Id>1</Id>
      <OpenTime>PT0.1234567S</OpenTime>
      <Status>Close</Status>
    </RestaurantOperationHourView>
    <RestaurantOperationHourView>
      <CloseTime>PT0.1234567S</CloseTime>
      <Day>Sunday</Day>
      <DayText>sample string 2</DayText>
      <Id>1</Id>
      <OpenTime>PT0.1234567S</OpenTime>
      <Status>Close</Status>
    </RestaurantOperationHourView>
  </RestaurantOperationHours>
</RestaurantOperationHourAndHoliday>