java.lang.Object
com.ringcentral.paths.restapi.v2.accounts.extensions.commhandling.voice.staterules.Index

public class Index extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • path

      public String path(Boolean withParameter)
    • path

      public String path()
    • list

      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:
      RestException
      IOException
    • list

      Throws:
      RestException
      IOException
    • 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:
      RestException
      IOException
    • 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:
      RestException
      IOException