News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
I can't set my business hours properly, getting CMN-101 error
Tags: call handling, errors
Oct 6, 2023 at 4:11pm   •   0 replies  •  0 likes
Byrne Reese

If you are getting a CMN-101 error when trying to update a business' office hours via the API, for example:

 "errors": [{ 
     "errorCode": "CMN-101",
     "message": "Parameter [schedule.weeklyRanges.monday.to] value is invalid.", 
     "parameterName": "schedule.weeklyRanges.monday.to" 
 }]

Then the most likely reason is because the times being input via the API are not correct. The common way this error is triggered is when a developer is trying to specify that their business is open for an entire 24-hour period, i.e. my business is open all day long on Fridays. Intuitively a developer might specify the following in this circumstance:

  • From time: 00:00

  • To time: 24:00

However, as silly as it may seem at first, technically the time "24:00" doesn't actually exist. Right? Think about this progression of time...

  • March 23, 2023, 23:58

  • March 23, 2023, 23:59 - one minute later

  • March 24, 2023, 00:00 - one minute later and the next day

So the fix is therefore quite simple. Set the from and to times as follows:

  • From time: 00:00

  • To time: 23:59

And don't worry, our UI will report this as open all day long just as you most likely would prefer.



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us