Class Index
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Returns the extension's voice state-based rule by ID specified in URL.list()list(ListVoiceStateBasedRulesParameters queryParams) Returns a list of extension's voice state-based rules.patch(CommStateBasedRuleUpdateRequest commStateBasedRuleUpdateRequest) Updates the extension's voice state-based rule.path()
-
Field Details
-
rc
-
parent
-
stateId
-
-
Constructor Details
-
Index
-
-
Method Details
-
path
-
path
-
list
public CommStateBasedRulesResource list(ListVoiceStateBasedRulesParameters queryParams) throws RestException, IOException Returns a list of extension's voice state-based rules.*State-base rule* is a call handling rule, managing voice calls on the basis of the user's **state (status)**: *Forward all calls (FAC), Do not disturb (DND), Work Hours (WH), After Hours (AH), Agent*.
**Please note:** State-based rules are applicable to the User extension types only: User, DigitalUser, FaxUser, VirtualUser.
HTTP Method: get Endpoint: /restapi/v2/accounts/{accountId}/extensions/{extensionId}/comm-handling/voice/state-rules Rate Limit Group: Medium App Permission: ReadAccounts
- Throws:
RestExceptionIOException
-
list
- Throws:
RestExceptionIOException
-
get
Returns the extension's voice state-based rule by ID specified in URL. Each state is assigned with the predefined ID.*State-base rule* is a call handling rule, managing voice calls on the basis of the user's **state (status)**:
*Forward all calls (FAC), Do not disturb (DND), Work Hours (WH), After Hours (AH), Agent*.
HTTP Method: get Endpoint: /restapi/v2/accounts/{accountId}/extensions/{extensionId}/comm-handling/voice/state-rules/{stateId} Rate Limit Group: Medium App Permission: ReadAccounts
- Throws:
RestExceptionIOException
-
patch
public CommStateBasedRuleResource patch(CommStateBasedRuleUpdateRequest commStateBasedRuleUpdateRequest) throws RestException, IOException Updates the extension's voice state-based rule.**Please note:** When updating any of objects: `enabled`, `displayName`, `dispatching`, `condition`, etc. all of object parameters should be passed (as in PUT method) - if a parameter is not specified, its value will be set back to default, if any, or deleted.
HTTP Method: patch Endpoint: /restapi/v2/accounts/{accountId}/extensions/{extensionId}/comm-handling/voice/state-rules/{stateId} Rate Limit Group: Medium App Permission: EditExtensions
- Throws:
RestExceptionIOException
-