java.lang.Object
com.ringcentral.paths.restapi.v2.accounts.extensions.devices.replace.Index

public class Index extends Object
  • Field Details

  • Constructor Details

    • Index

      public Index(Index parent)
  • Method Details

    • path

      public String path()
    • path

      public String path(Boolean withParameter)
    • post

      public String post(SwapDeviceRequest swapDeviceRequest) throws RestException, IOException
      Replaces the user device with another device, which is assigned to an extension or is stored in the inventory of the same account. Currently, the following device types can be swapped - `HardPhone` and `OtherPhone`.

      Please note:

      - This method allows replacing a device itself, while a phone number, a digital Line and an emergency address associated with this device remain unchanged and will still work together in a chain with the replacement device. - If a target device is from the inventory, then a source device will be moved to the inventory, and a target device will be assigned to the current extension. - If a target device is currently assigned to another extension, then the devices will be just swapped.

      HTTP Method: post Endpoint: /restapi/v2/accounts/{accountId}/extensions/{extensionId}/devices/{deviceId}/replace Rate Limit Group: Medium App Permission: EditAccounts User Permission: EditUserDevices

      Throws:
      RestException
      IOException