POST Booking/AddBusinessHours
Creates a reciproque bound between two BusinessHours.
Request Information
URI Parameters
None.
Body Parameters
AddBusinessHoursBinding| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
For human identification purposes |
string |
None. |
| Description | string |
None. |
|
| OutOfOffice |
This is an exception. For instance, sundays or saturdays from 15:00 to 20:00 |
boolean |
None. |
| DayOfWeek |
Day of week this period refers to. If null, all days. For instance, each day from 15:00 to 20:00 0-indexed. Monday 0, Sunday 6 |
integer |
Range: inclusive between 0 and 6 |
| Start | time interval |
None. |
|
| End | time interval |
None. |
|
| Lang | string |
None. |
|
| StoreID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"Description": "sample string 2",
"OutOfOffice": true,
"DayOfWeek": 1,
"Start": "00:00:00.1234567",
"End": "00:00:00.1234567",
"Lang": "sample string 6",
"StoreID": 7
}
application/xml, text/xml
Sample:
<AddBusinessHoursBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Booking"> <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">sample string 6</Lang> <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">7</StoreID> <DayOfWeek>1</DayOfWeek> <Description>sample string 2</Description> <End>PT0.1234567S</End> <Name>sample string 1</Name> <OutOfOffice>true</OutOfOffice> <Start>PT0.1234567S</Start> </AddBusinessHoursBinding>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.