AfterHours
Add a holiday
Adds a holiday to the specified location. <br />Send this request GET /locations/{locationId}/holidays to get the location holidays. <br />Learn how to manage holidays for a location in ServiceChannel University. <br />Example Request
POST /locations/{locationId}/holidays
{
"HolidayName": "Happy Weekend",
"OpenTime": "10:00 AM",
"CloseTime": "06:00 PM",
"ClosedAllDay": false,
"Frequency": "Yearly",
"StartDate": "2021-07-03T00:10:00.308Z",
"RepeatEvery": "1",
"RepeatBy": "DayOfWeek",
"RepeatOnDays": [
"Saturday", "Sunday"
],
"RepeatOnMonths": [
“June”, "July", "August"
]
}
post/locations/{locationId}/holidays
Request
- Base URLhttps://sb2api.servicechannel.com/v3
- AuthOAuth 2Authorization codehttps://sb2login.servicechannel.com/oauth/authorizeToken URLhttps://sb2login.servicechannel.com/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
locationIdinteger required
Unique identifier of the subscriber’s location you want to add or update holidays for.
Request body
Response
The holiday is added to the specified location.
Changes
No recorded changes to this operation across all 1 revision of this API.