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 rphoneNumber] value is invalid."
"parameterName": "phoneNumber"