question

anjana-rao10774 avatar image
anjana-rao10774 asked ·

How to provision polycom phone using API

How to register a polycom device, using sandbox account. How to do sip provisioning for Polycom phone post /restapi/v1.0/client-info/sip-provision

I tried -

Curl
curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" --header "Authorization: Bearer U0pDMTFQMDFQQVMwMHxBQUJvTTZoTmZiSnp1Tk5XWVFCQkNUWFZWTDNTdGR2eWltODNWWF9BR2tVOUdLZVFEc2cweEUwb3lENWZ2X3lla0pGNF9QWWRPMEVYNENYQjd4dmJsWHJocDNNR1QxN2FqZWJIczcycTVONm13M3kwVDdfcUkzSFRVSENBUDVsSWZISXFIWVpuSm0xUmdlSGtoRHdNUl9WR3ZqNlZVSnN0M2l4eVZ1RnBFOWx0YUN2LU5tQV90azJmdEhNQ1I1eWh3SE18SkVsdUxRfDR5U1pkWUk5eGljSGRCVjI0NVZCQ2d8QUE" -d "{\"device\":[{\"id\":\"64167f7f7f81\",\"appExternalId\":\"\",\"computerName\":\"VVX 500\"}],\"sipInfo\":[{\"transport\":\"UDP\"}]}" "https://platform.devtest.ringcentral.com/restapi/v1.0/client-info/sip-provision"


Request URL
https://platform.devtest.ringcentral.com/restapi/v1.0/client-info/sip-provision

Response Body
{    "errorCode": "InvalidParameter",    "message": "Parameter [device] value is invalid",    "errors": [      {        "errorCode": "CMN-101",        "message": "Parameter [device] value is invalid",        "parameterName": "device"      }    ],    "parameterName": "device"  }

Response Code
400



aaa
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
Tyler Liu avatar image
Tyler Liu answered ·
https://developer.ringcentral.com/api-docs/latest/index.html#!#RefCreateSipRegistration

According to the doc, there should be a "sipInfo" property in request body.
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.