Skip to main content
Question

Why I can't remove phone line from device

  • April 2, 2024
  • 4 replies
  • 191 views

I have tried to delete a phone from a device:

DELETE https://platform.devtest.ringcentral.com/restapi/v2/accounts/accountId/devices/deviceId

but I got the error:

"message": "The line can not be removed from the unassigned device.",
"errorCode": "DEV-353"

What does it mean? What is wrong here?

Thanks

4 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • April 2, 2024

Based on the error message, it seems that you attempted to remove the phone line from a device which has not been assigned to any extension. Please check if it is the case.

The API is for unassigning a device which was assigned to an extension.


  • Author
  • New Participant
  • April 5, 2024

Yes this was problem.

Thank you


  • Author
  • New Participant
  • April 5, 2024

But now I have another issue.I want to assign this phone number to an other extension with:
Phone Numbers - Assign Phone Number

But with this request

curl --request PATCH

--url 'https://platform.devtest.ringcentral.com/restapi/v2/accounts/~/phone-numbers/400408004'

--data '{"usageType":"PhoneLine","extension":{"id":"896916005"},"type":"VoiceFax"}'

I got the follwing error:

{

"errors": [

{

"errorCode": "CMN-101",

"message": "Parameter [type] value is invalid",

"parameterName": "type"

}

]

}

I tried also other types but every time the same error


{ "errors": [ { "errorCode": "CMN-101", "message": "Parameter [type] Wert ist ungültig.", "parameterName": "type" } ] }


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • April 5, 2024

Don't set the type parameter. OR if you set it, it must be the same as the type of that number. You can read the number info using this API.

Note: This does not support PhoneLine (Digital Line). Only CompanyNumber and DirectNumber