Class Index
java.lang.Object
com.ringcentral.paths.restapi.account.extension.callerblocking.phonenumbers.Index
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelete()Deletes blocked or allowed phone number(s) by their ID(s).get()Returns blocked or allowed phone number(s) by their ID(s).list()list(ListBlockedAllowedNumbersParameters queryParams) Returns the lists of blocked and allowed phone numbers.path()post(AddBlockedAllowedPhoneNumber addBlockedAllowedPhoneNumber) Updates either blocked or allowed phone number list with a new phone number.put(AddBlockedAllowedPhoneNumber addBlockedAllowedPhoneNumber) Updates blocked or allowed phone number(s) by their ID(s).
-
Field Details
-
rc
-
parent
-
blockedNumberId
-
-
Constructor Details
-
Index
-
-
Method Details
-
path
-
path
-
list
public BlockedAllowedPhoneNumbersList list(ListBlockedAllowedNumbersParameters queryParams) throws RestException, IOException Returns the lists of blocked and allowed phone numbers. HTTP Method: get Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers Rate Limit Group: Light App Permission: ReadAccounts User Permission: ReadBlockedNumbers- Throws:
RestExceptionIOException
-
list
- Throws:
RestExceptionIOException
-
post
public BlockedAllowedPhoneNumberInfo post(AddBlockedAllowedPhoneNumber addBlockedAllowedPhoneNumber) throws RestException, IOException Updates either blocked or allowed phone number list with a new phone number. HTTP Method: post Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers Rate Limit Group: Medium App Permission: EditExtensions User Permission: EditBlockedNumbers- Throws:
RestExceptionIOException
-
get
Returns blocked or allowed phone number(s) by their ID(s). [Batch request syntax](https://developers.ringcentral.com/api-reference/Batch-Requests) is supported.HTTP Method: get Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers/{blockedNumberId} Rate Limit Group: Light App Permission: ReadAccounts User Permission: ReadBlockedNumbers
- Throws:
RestExceptionIOException
-
put
public BlockedAllowedPhoneNumberInfo put(AddBlockedAllowedPhoneNumber addBlockedAllowedPhoneNumber) throws RestException, IOException Updates blocked or allowed phone number(s) by their ID(s). [Batch request syntax](https://developers.ringcentral.com/api-reference/Batch-Requests) is supported.HTTP Method: put Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers/{blockedNumberId} Rate Limit Group: Medium App Permission: EditExtensions User Permission: EditBlockedNumbers
- Throws:
RestExceptionIOException
-
delete
Deletes blocked or allowed phone number(s) by their ID(s). Batch request is supported. HTTP Method: delete Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers/{blockedNumberId} Rate Limit Group: Medium App Permission: EditExtensions User Permission: EditBlockedNumbers- Throws:
RestExceptionIOException
-