Get User Business Hours
Returns the user business hours schedule. Business hours (and After hours - all the remaining time) schedules are commonly used for setting call handling rules - business-hours-rule and after-hours-rule correspondingly. Please note: If the user business hours are set to 'Custom hours' then a particular schedule is returned; however if set to '24 hours/7 days a week' the schedule will be empty.
Request
- Base URLhttps://platform.ringcentral.com
- AuthOAuth 2Authorization codehttps://platform.ringcentral.com/restapi/oauth/authorizeToken URLhttps://platform.ringcentral.com/restapi/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Internal identifier of the RingCentral account (can be set to "~" to indicate that the account associated with current authorization session should be used)
Internal identifier of the RingCentral extension/user (can be set to "~" to indicate that the extension associated with current authorization session should be used)
Response
OK
Example response
{
"uri": "https://restapi/v1.0/account/401800045008/extension/401800045008/business-hours",
"schedule": {
"weeklyRanges": {
"wednesday": [
{
"from": "09:00",
"to": "18:00"
}
],
"friday": [
{
"from": "09:00",
"to": "18:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "18:00"
}
],
"monday": [
{
"from": "09:00",
"to": "18:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "18:00"
}
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.