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
Problem with Update Extension Caller ID
Tags: caller id
Nov 13, 2019 at 8:10am   •   1 replies  •  0 likes
James Peragine

I am using CURL in the developer portal and keep getting an error that the phoneNumber is invalid. What a I doing wrong?


Code:

curl --request PUT \
  --url 'https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/caller-id' \
  --header 'accept: application/json' \
  --header 'authorization: Bearer [[CODE]]' \
  --header 'content-type: application/json' \
  --data '{"byDevice":[{"device":{"id":"803563698037","uri":"https://platform.ringcentral.com/restapi/v1.0/account/179610037/device/803563698037","phoneNumber":"Ext. 101 Other Phone"},"callerId":{"type":"PhoneNumber","phoneInfo":{"id":"2025731036","uri":"https://platform.ringcentral.com/restapi/v1.0/account/179610037/phone-number/2025731036","phoneNumber":"+19703002096"}}}]}'

Error code I get back is

"errorCode":  "CMN-101"
"message":  "Parameter [phoneNumber] value is invalid."
"parameterName":  "phoneNumber"
1 Answer
answered on Nov 13, 2019 at 9:13am  

error code I get back is


"errorCode":
"CMN-101"
"message":
"Parameter [phoneNumber] value is invalid."
"parameterName":
"phoneNumber"

 0
answered on Nov 13, 2019 at 10:23am  

I think the API reference is incorrect. While waiting for the dev team to confirm and make change to the doc, can you try to remove the "uri" and "phoneNumber" key/value pair from the "device" object. I think the "uri" and "phoneNumber" from the "phoneInfo" object can be omitted as well.

Please try and let me know


 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