Skip to main content
Question

Parameter [schedule.ranges.from] value is invalid

  • October 25, 2018
  • 1 reply
  • 715 views

I am trying to create a custom answering rule and have been encountering the following error:


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


According to the documentation, the format for ranges is "YYYY-MM-DD hh:mm". Below is the JSON I am POSTing.


{   "type": "Custom",   "name": "Calling Rule 1",   "schedule" : {    "ranges": [     {      "from": "2018-10-25 14:00",      "to": "2018-10-25 14:30"     }    ]   },   "callHandlingAction": "UnconditionalForwarding",   "unconditionalForwarding": {    "phoneNumber": "+1112223333"   }  }


Any ideas what's wrong here? Thanks!

1 reply

I believe the correct format should be YYYY-MM-dd'T'hh:mm:ss.

So in your case it should look like

{   "type": "Custom",   "name": "Calling Rule 1",   "schedule" : {    "ranges": [     {      "from": "2018-10-25T14:00:00",      "to": "2018-10-25T14:30:00"     }    ]   },   "callHandlingAction": "UnconditionalForwarding",   "unconditionalForwarding": {    "phoneNumber": "+1112223333"   }  
}    See https://developer.ringcentral.com/legacy-api-reference/index.html#!#DataTypes.html  
Let us know if it works. We will fix documentation.

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings