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!