Description | Calling this endpoint by providing token of admin user to set branch operating hour for a company. |
Endpoint | {DataManagerAPI}/action/SetBranchOperatingHour |
Method | POST |
Headers |
|
Body - JSON Example |
{
"BranchOperatingHour": [
{
"BranchName": "site1",
"BranchCode": "1001",
"BranchId": 420,
"StartTime": "2022-05-19T00:00:00",
"EndTime": "2022-05-19T01:00:00",
"Day": 0,
"IsDayOff": false
},
{
"BranchName": "site1",
"BranchCode": "1001",
"BranchId": 420,
"StartTime": "2022-05-19T01:00:00",
"EndTime": "2022-05-19T11:00:00",
"Day": 1,
"IsDayOff": false
},
{
"BranchName": "site1",
"BranchCode": "1001",
"BranchId": 420,
"StartTime": "2022-05-19T11:00:00",
"EndTime": "2022-05-19T23:10:00",
"Day": 1,
"IsDayOff": false
},
{
"BranchName": "site1",
"BranchCode": "1001",
"BranchId": 420,
"StartTime": "2022-05-19T00:00:00",
"EndTime": "2022-05-19T23:30:00",
"Day": 2,
"IsDayOff": false
},
{
"BranchName": "site1",
"BranchCode": "1001",
"BranchId": 420,
"StartTime": "2022-05-19T00:00:00",
"EndTime": "2022-05-19T23:10:00",
"Day": 3,
"IsDayOff": false
},
{
"BranchName": "site1",
"BranchCode": "1001",
"BranchId": 420,
"StartTime": "2022-05-19T00:00:00",
"EndTime": "2022-05-19T23:10:00",
"Day": 4,
"IsDayOff": false
},
{
"BranchName": "site1",
"BranchCode": "1001",
"BranchId": 420,
"StartTime": "2022-05-19T00:00:00",
"EndTime": "2022-05-19T23:10:00",
"Day": 5,
"IsDayOff": false
},
{
"BranchName": "site1",
"BranchCode": "1001",
"BranchId": 420,
"StartTime": "2022-05-19T00:00:00",
"EndTime": "2022-05-19T23:10:00",
"Day": 6,
"IsDayOff": false
},
{
"BranchName": "site2",
"BranchCode": "1002",
"BranchId": 530,
"StartTime": "2022-05-19T00:00:00",
"EndTime": "2022-05-19T23:59:00",
"Day": 0,
"IsDayOff": false
},
{
"BranchName": "site2",
"BranchCode": "1002",
"BranchId": 530,
"StartTime": "2022-05-19T00:00:00",
"EndTime": "2022-05-19T23:59:00",
"Day": 1,
"IsDayOff": false
},
{
"BranchName": "site2",
"BranchCode": "1002",
"BranchId": 530,
"StartTime": "2022-05-19T00:00:00",
"EndTime": "2022-05-19T23:59:00",
"Day": 2,
"IsDayOff": false
},
{
"BranchName": "site2",
"BranchCode": "1002",
"BranchId": 530,
"StartTime": "2022-05-19T00:00:00",
"EndTime": "2022-05-19T23:59:00",
"Day": 3,
"IsDayOff": false
},
{
"BranchName": "site2",
"BranchCode": "1002",
"BranchId": 530,
"StartTime": "2022-05-19T00:00:00",
"EndTime": "2022-05-19T23:59:00",
"Day": 4,
"IsDayOff": false
},
{
"BranchName": "site2",
"BranchCode": "1002",
"BranchId": 530,
"StartTime": "2022-05-19T00:00:00",
"EndTime": "2022-05-19T23:59:00",
"Day": 5,
"IsDayOff": false
},
{
"BranchName": "site2",
"BranchCode": "1002",
"BranchId": 530,
"StartTime": "2022-05-19T00:00:00",
"EndTime": "2022-05-19T23:59:00",
"Day": 6,
"IsDayOff": true
}
],
"BranchSpecialOperatingHour": [
{
"BranchName": "site1",
"BranchCode": "1001",
"BranchId": 420,
"Date": "2022-06-29T00:00:00",
"StartTime": "2022-06-29T00:00:00",
"EndTime": "2022-06-29T00:00:00",
"IsDayOff": true,
"Comment": "Test special 1"
},
{
"BranchName": "site1",
"BranchCode": "1001",
"BranchId": 420,
"Date": "2022-07-12T00:00:00",
"StartTime": "2022-07-12T00:00:00",
"EndTime": "2022-07-12T00:00:00",
"IsDayOff": true,
"Comment": "Test special 2"
}
]
}
|
Body Description |
|
Response - JSON Example |
{
"Status": 200,
"Error": "",
"Message": "Operating Hour updated",
"Data": null
}
|