I'm using the RingCentral RingOut API and I'm wondering if I can block the caller ID?
The RingOut API only shows the phoneNumber
property in the request format but RingCentral Online Account Portal can block the caller ID. Is there a way to do this?
API Reference: https://developer.ringcentral.com/api-docs/latest/index.html#!#RefMakeRingOut
Request:
POST /restapi/v1.0/account/~/extension/~/ring-out HTTP/1.1
{
"from": {"phoneNumber": "+14155550100"},
"callerId": {"phoneNumber": "+16505550100"},
"to": {"phoneNumber": "+12125550100"},
"playPrompt": true
}
I am using the Ruby SDK: https://github.com/ringcentral/ringcentral-ruby
rc.post('/restapi/v1.0/account/~/extension/~/ring-out', payload: {
from: {phoneNumber: "+14155550100"},
callerId: {phoneNumber: "+16505550100"},
to: {phoneNumber: "+12125550100"},
playPrompt: true
})