POST api/locations/businesshours
Request Information
URI Parameters
None.
Body Parameters
Collection of BusinessHoursEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| DayOfWeek | string |
None. |
|
| OpeningTime | time interval |
None. |
|
| ClosingTime | time interval |
None. |
|
| IsClosed | boolean |
None. |
|
| VendorId | integer |
None. |
|
| LocationId | integer |
None. |
|
| CreatedTime | date |
None. |
|
| UpdatedTime | date |
None. |
|
| Active | boolean |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"DayOfWeek": "sample string 2",
"OpeningTime": "00:00:00.1234567",
"ClosingTime": "00:00:00.1234567",
"IsClosed": true,
"VendorId": 6,
"LocationId": 7,
"CreatedTime": "2025-12-31T16:39:33.0180764+05:30",
"UpdatedTime": "2025-12-31T16:39:33.0180764+05:30",
"Active": true
},
{
"Id": 1,
"DayOfWeek": "sample string 2",
"OpeningTime": "00:00:00.1234567",
"ClosingTime": "00:00:00.1234567",
"IsClosed": true,
"VendorId": 6,
"LocationId": 7,
"CreatedTime": "2025-12-31T16:39:33.0180764+05:30",
"UpdatedTime": "2025-12-31T16:39:33.0180764+05:30",
"Active": true
}
]
application/xml, text/xml
Sample:
<ArrayOfBusinessHoursEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pos_crm_api_DAL.Entities">
<BusinessHoursEntity>
<Active>true</Active>
<ClosingTime>PT0.1234567S</ClosingTime>
<CreatedTime>2025-12-31T16:39:33.0180764+05:30</CreatedTime>
<DayOfWeek>sample string 2</DayOfWeek>
<Id>1</Id>
<IsClosed>true</IsClosed>
<LocationId>7</LocationId>
<OpeningTime>PT0.1234567S</OpeningTime>
<UpdatedTime>2025-12-31T16:39:33.0180764+05:30</UpdatedTime>
<VendorId>6</VendorId>
</BusinessHoursEntity>
<BusinessHoursEntity>
<Active>true</Active>
<ClosingTime>PT0.1234567S</ClosingTime>
<CreatedTime>2025-12-31T16:39:33.0180764+05:30</CreatedTime>
<DayOfWeek>sample string 2</DayOfWeek>
<Id>1</Id>
<IsClosed>true</IsClosed>
<LocationId>7</LocationId>
<OpeningTime>PT0.1234567S</OpeningTime>
<UpdatedTime>2025-12-31T16:39:33.0180764+05:30</UpdatedTime>
<VendorId>6</VendorId>
</BusinessHoursEntity>
</ArrayOfBusinessHoursEntity>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |