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
How use method Create Company Call Handling Rule ? Always has error "Parameter [callerId] value is invalid"
Tags: call handling, errors
Oct 1, 2018 at 11:01am   •   2 replies  •  0 likes
nikolay-naau

Not working method Create Company Call Handling Rule by Api. Always error "Parameter [callerId] value is invalid". But i try phone number in different formats. Try extension ID, number id also. Maybe somebody know how Create Company rule by API. Which caller id is correct?

2 Answers
answered on Oct 2, 2018 at 7:05am  
Just tried this one:

POST https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/answering-rule
{
  "enabled": true,
  "callers": [
    {
      "callerId": "+15551234567"
    }
  ]
}

and the response looks fine:

HTTP 200 OK
{
  "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/.../answering-rule/198652004",
  "id": "198652004",
  "type": "Custom",
  "name": "My Rule 1",
  "enabled": true,
  "callers": [
    {
      "callerId": "15551234567"
    }
  ],
  "greetings": [
    {
      "type": "Company",
      "preset": {
        "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/dictionary/greeting/262145";,
        "id": "262145",
        "name": "Company Greeting"
      }
    }
  ],
  "callHandlingAction": "Operator"
}

So, as Tyler already asked, could you please provide your API request?

 0
answered on Oct 2, 2018 at 2:06am  
Are you trying the API Explorer? Or could you please post your code?

 0



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