PUT api/DashboardCompanyOpeningDay/SetCompanyWeek?CompanyId={CompanyId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyId | globally unique identifier |
Required |
Body Parameters
CommonWeekOpenings| Name | Description | Type | Additional information |
|---|---|---|---|
| Monday | CommonCompanyOpeningDay |
None. |
|
| Tuesday | CommonCompanyOpeningDay |
None. |
|
| Wednesday | CommonCompanyOpeningDay |
None. |
|
| Thursday | CommonCompanyOpeningDay |
None. |
|
| Friday | CommonCompanyOpeningDay |
None. |
|
| Saturday | CommonCompanyOpeningDay |
None. |
|
| Sunday | CommonCompanyOpeningDay |
None. |
|
| CompanyId | globally unique identifier |
None. |
|
| HasOpening | boolean |
None. |
|
| CurrentOpeningState | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Monday": {
"DayOfWeek": 1,
"P1Opened": true,
"P1From": "00:00:00.1234567",
"P1FromStr": "00:00",
"P1To": "00:00:00.1234567",
"P1ToStr": "00:00",
"P2Opened": true,
"P2From": "00:00:00.1234567",
"P2FromStr": "00:00",
"P2To": "00:00:00.1234567",
"P2ToStr": "00:00",
"P1WorkingPlaceId": "sample string 8",
"P2WorkingPlaceId": "sample string 9"
},
"Tuesday": {
"DayOfWeek": 1,
"P1Opened": true,
"P1From": "00:00:00.1234567",
"P1FromStr": "00:00",
"P1To": "00:00:00.1234567",
"P1ToStr": "00:00",
"P2Opened": true,
"P2From": "00:00:00.1234567",
"P2FromStr": "00:00",
"P2To": "00:00:00.1234567",
"P2ToStr": "00:00",
"P1WorkingPlaceId": "sample string 8",
"P2WorkingPlaceId": "sample string 9"
},
"Wednesday": {
"DayOfWeek": 1,
"P1Opened": true,
"P1From": "00:00:00.1234567",
"P1FromStr": "00:00",
"P1To": "00:00:00.1234567",
"P1ToStr": "00:00",
"P2Opened": true,
"P2From": "00:00:00.1234567",
"P2FromStr": "00:00",
"P2To": "00:00:00.1234567",
"P2ToStr": "00:00",
"P1WorkingPlaceId": "sample string 8",
"P2WorkingPlaceId": "sample string 9"
},
"Thursday": {
"DayOfWeek": 1,
"P1Opened": true,
"P1From": "00:00:00.1234567",
"P1FromStr": "00:00",
"P1To": "00:00:00.1234567",
"P1ToStr": "00:00",
"P2Opened": true,
"P2From": "00:00:00.1234567",
"P2FromStr": "00:00",
"P2To": "00:00:00.1234567",
"P2ToStr": "00:00",
"P1WorkingPlaceId": "sample string 8",
"P2WorkingPlaceId": "sample string 9"
},
"Friday": {
"DayOfWeek": 1,
"P1Opened": true,
"P1From": "00:00:00.1234567",
"P1FromStr": "00:00",
"P1To": "00:00:00.1234567",
"P1ToStr": "00:00",
"P2Opened": true,
"P2From": "00:00:00.1234567",
"P2FromStr": "00:00",
"P2To": "00:00:00.1234567",
"P2ToStr": "00:00",
"P1WorkingPlaceId": "sample string 8",
"P2WorkingPlaceId": "sample string 9"
},
"Saturday": {
"DayOfWeek": 1,
"P1Opened": true,
"P1From": "00:00:00.1234567",
"P1FromStr": "00:00",
"P1To": "00:00:00.1234567",
"P1ToStr": "00:00",
"P2Opened": true,
"P2From": "00:00:00.1234567",
"P2FromStr": "00:00",
"P2To": "00:00:00.1234567",
"P2ToStr": "00:00",
"P1WorkingPlaceId": "sample string 8",
"P2WorkingPlaceId": "sample string 9"
},
"Sunday": {
"DayOfWeek": 1,
"P1Opened": true,
"P1From": "00:00:00.1234567",
"P1FromStr": "00:00",
"P1To": "00:00:00.1234567",
"P1ToStr": "00:00",
"P2Opened": true,
"P2From": "00:00:00.1234567",
"P2FromStr": "00:00",
"P2To": "00:00:00.1234567",
"P2ToStr": "00:00",
"P1WorkingPlaceId": "sample string 8",
"P2WorkingPlaceId": "sample string 9"
},
"CompanyId": "2df70d27-3f96-43a7-b491-25c76d582d5a",
"HasOpening": true,
"CurrentOpeningState": false
}
application/xml, text/xml
Sample:
<CommonWeekOpenings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MesHalles.Common.Objects">
<CompanyId>2df70d27-3f96-43a7-b491-25c76d582d5a</CompanyId>
<Friday>
<DayOfWeek>1</DayOfWeek>
<P1From>PT0.1234567S</P1From>
<P1Opened>true</P1Opened>
<P1To>PT0.1234567S</P1To>
<P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
<P2From>PT0.1234567S</P2From>
<P2Opened>true</P2Opened>
<P2To>PT0.1234567S</P2To>
<P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
</Friday>
<Monday>
<DayOfWeek>1</DayOfWeek>
<P1From>PT0.1234567S</P1From>
<P1Opened>true</P1Opened>
<P1To>PT0.1234567S</P1To>
<P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
<P2From>PT0.1234567S</P2From>
<P2Opened>true</P2Opened>
<P2To>PT0.1234567S</P2To>
<P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
</Monday>
<Saturday>
<DayOfWeek>1</DayOfWeek>
<P1From>PT0.1234567S</P1From>
<P1Opened>true</P1Opened>
<P1To>PT0.1234567S</P1To>
<P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
<P2From>PT0.1234567S</P2From>
<P2Opened>true</P2Opened>
<P2To>PT0.1234567S</P2To>
<P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
</Saturday>
<Sunday>
<DayOfWeek>1</DayOfWeek>
<P1From>PT0.1234567S</P1From>
<P1Opened>true</P1Opened>
<P1To>PT0.1234567S</P1To>
<P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
<P2From>PT0.1234567S</P2From>
<P2Opened>true</P2Opened>
<P2To>PT0.1234567S</P2To>
<P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
</Sunday>
<Thursday>
<DayOfWeek>1</DayOfWeek>
<P1From>PT0.1234567S</P1From>
<P1Opened>true</P1Opened>
<P1To>PT0.1234567S</P1To>
<P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
<P2From>PT0.1234567S</P2From>
<P2Opened>true</P2Opened>
<P2To>PT0.1234567S</P2To>
<P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
</Thursday>
<Tuesday>
<DayOfWeek>1</DayOfWeek>
<P1From>PT0.1234567S</P1From>
<P1Opened>true</P1Opened>
<P1To>PT0.1234567S</P1To>
<P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
<P2From>PT0.1234567S</P2From>
<P2Opened>true</P2Opened>
<P2To>PT0.1234567S</P2To>
<P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
</Tuesday>
<Wednesday>
<DayOfWeek>1</DayOfWeek>
<P1From>PT0.1234567S</P1From>
<P1Opened>true</P1Opened>
<P1To>PT0.1234567S</P1To>
<P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
<P2From>PT0.1234567S</P2From>
<P2Opened>true</P2Opened>
<P2To>PT0.1234567S</P2To>
<P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
</Wednesday>
</CommonWeekOpenings>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CommonWeekOpenings| Name | Description | Type | Additional information |
|---|---|---|---|
| Monday | CommonCompanyOpeningDay |
None. |
|
| Tuesday | CommonCompanyOpeningDay |
None. |
|
| Wednesday | CommonCompanyOpeningDay |
None. |
|
| Thursday | CommonCompanyOpeningDay |
None. |
|
| Friday | CommonCompanyOpeningDay |
None. |
|
| Saturday | CommonCompanyOpeningDay |
None. |
|
| Sunday | CommonCompanyOpeningDay |
None. |
|
| CompanyId | globally unique identifier |
None. |
|
| HasOpening | boolean |
None. |
|
| CurrentOpeningState | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Monday": {
"DayOfWeek": 1,
"P1Opened": true,
"P1From": "00:00:00.1234567",
"P1FromStr": "00:00",
"P1To": "00:00:00.1234567",
"P1ToStr": "00:00",
"P2Opened": true,
"P2From": "00:00:00.1234567",
"P2FromStr": "00:00",
"P2To": "00:00:00.1234567",
"P2ToStr": "00:00",
"P1WorkingPlaceId": "sample string 8",
"P2WorkingPlaceId": "sample string 9"
},
"Tuesday": {
"DayOfWeek": 1,
"P1Opened": true,
"P1From": "00:00:00.1234567",
"P1FromStr": "00:00",
"P1To": "00:00:00.1234567",
"P1ToStr": "00:00",
"P2Opened": true,
"P2From": "00:00:00.1234567",
"P2FromStr": "00:00",
"P2To": "00:00:00.1234567",
"P2ToStr": "00:00",
"P1WorkingPlaceId": "sample string 8",
"P2WorkingPlaceId": "sample string 9"
},
"Wednesday": {
"DayOfWeek": 1,
"P1Opened": true,
"P1From": "00:00:00.1234567",
"P1FromStr": "00:00",
"P1To": "00:00:00.1234567",
"P1ToStr": "00:00",
"P2Opened": true,
"P2From": "00:00:00.1234567",
"P2FromStr": "00:00",
"P2To": "00:00:00.1234567",
"P2ToStr": "00:00",
"P1WorkingPlaceId": "sample string 8",
"P2WorkingPlaceId": "sample string 9"
},
"Thursday": {
"DayOfWeek": 1,
"P1Opened": true,
"P1From": "00:00:00.1234567",
"P1FromStr": "00:00",
"P1To": "00:00:00.1234567",
"P1ToStr": "00:00",
"P2Opened": true,
"P2From": "00:00:00.1234567",
"P2FromStr": "00:00",
"P2To": "00:00:00.1234567",
"P2ToStr": "00:00",
"P1WorkingPlaceId": "sample string 8",
"P2WorkingPlaceId": "sample string 9"
},
"Friday": {
"DayOfWeek": 1,
"P1Opened": true,
"P1From": "00:00:00.1234567",
"P1FromStr": "00:00",
"P1To": "00:00:00.1234567",
"P1ToStr": "00:00",
"P2Opened": true,
"P2From": "00:00:00.1234567",
"P2FromStr": "00:00",
"P2To": "00:00:00.1234567",
"P2ToStr": "00:00",
"P1WorkingPlaceId": "sample string 8",
"P2WorkingPlaceId": "sample string 9"
},
"Saturday": {
"DayOfWeek": 1,
"P1Opened": true,
"P1From": "00:00:00.1234567",
"P1FromStr": "00:00",
"P1To": "00:00:00.1234567",
"P1ToStr": "00:00",
"P2Opened": true,
"P2From": "00:00:00.1234567",
"P2FromStr": "00:00",
"P2To": "00:00:00.1234567",
"P2ToStr": "00:00",
"P1WorkingPlaceId": "sample string 8",
"P2WorkingPlaceId": "sample string 9"
},
"Sunday": {
"DayOfWeek": 1,
"P1Opened": true,
"P1From": "00:00:00.1234567",
"P1FromStr": "00:00",
"P1To": "00:00:00.1234567",
"P1ToStr": "00:00",
"P2Opened": true,
"P2From": "00:00:00.1234567",
"P2FromStr": "00:00",
"P2To": "00:00:00.1234567",
"P2ToStr": "00:00",
"P1WorkingPlaceId": "sample string 8",
"P2WorkingPlaceId": "sample string 9"
},
"CompanyId": "a2778e45-7126-4d09-84c8-e84c472ed1d2",
"HasOpening": true,
"CurrentOpeningState": false
}
application/xml, text/xml
Sample:
<CommonWeekOpenings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MesHalles.Common.Objects">
<CompanyId>a2778e45-7126-4d09-84c8-e84c472ed1d2</CompanyId>
<Friday>
<DayOfWeek>1</DayOfWeek>
<P1From>PT0.1234567S</P1From>
<P1Opened>true</P1Opened>
<P1To>PT0.1234567S</P1To>
<P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
<P2From>PT0.1234567S</P2From>
<P2Opened>true</P2Opened>
<P2To>PT0.1234567S</P2To>
<P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
</Friday>
<Monday>
<DayOfWeek>1</DayOfWeek>
<P1From>PT0.1234567S</P1From>
<P1Opened>true</P1Opened>
<P1To>PT0.1234567S</P1To>
<P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
<P2From>PT0.1234567S</P2From>
<P2Opened>true</P2Opened>
<P2To>PT0.1234567S</P2To>
<P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
</Monday>
<Saturday>
<DayOfWeek>1</DayOfWeek>
<P1From>PT0.1234567S</P1From>
<P1Opened>true</P1Opened>
<P1To>PT0.1234567S</P1To>
<P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
<P2From>PT0.1234567S</P2From>
<P2Opened>true</P2Opened>
<P2To>PT0.1234567S</P2To>
<P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
</Saturday>
<Sunday>
<DayOfWeek>1</DayOfWeek>
<P1From>PT0.1234567S</P1From>
<P1Opened>true</P1Opened>
<P1To>PT0.1234567S</P1To>
<P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
<P2From>PT0.1234567S</P2From>
<P2Opened>true</P2Opened>
<P2To>PT0.1234567S</P2To>
<P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
</Sunday>
<Thursday>
<DayOfWeek>1</DayOfWeek>
<P1From>PT0.1234567S</P1From>
<P1Opened>true</P1Opened>
<P1To>PT0.1234567S</P1To>
<P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
<P2From>PT0.1234567S</P2From>
<P2Opened>true</P2Opened>
<P2To>PT0.1234567S</P2To>
<P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
</Thursday>
<Tuesday>
<DayOfWeek>1</DayOfWeek>
<P1From>PT0.1234567S</P1From>
<P1Opened>true</P1Opened>
<P1To>PT0.1234567S</P1To>
<P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
<P2From>PT0.1234567S</P2From>
<P2Opened>true</P2Opened>
<P2To>PT0.1234567S</P2To>
<P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
</Tuesday>
<Wednesday>
<DayOfWeek>1</DayOfWeek>
<P1From>PT0.1234567S</P1From>
<P1Opened>true</P1Opened>
<P1To>PT0.1234567S</P1To>
<P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
<P2From>PT0.1234567S</P2From>
<P2Opened>true</P2Opened>
<P2To>PT0.1234567S</P2To>
<P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
</Wednesday>
</CommonWeekOpenings>