Changing device properties in JSON-RPC API

To modify a backup device, use the ModifyAccount method. You can change the following properties:

  • Re-assign the device to another customer
  • Change the amount of storage allocated to the device
  • Set an expiration time for the device
  • Change the location of the device
  • Re-assign the device to another storage pool

Device names and passwords cannot be changed.

Required parameters

Parameter Description Type/Supported values
accountInfo A group of parameters related to the device AccountInfo, (has child parameters of its own see the AccountInfo child parameters table below)

Optional parameters

Parameter Description Supported values
forceRemoveCustomColumnValuesInOldScope Do you wish to force remove custom column values for the device

bool Boolean

  • True
  • False

Sample request

Let's say you need to re-assign a device to another customer. To do it, submit the ID of the new customer together wit the device name.

{
    "id": "jsonrpc",
    "visa": "33491-50121-1-1512736778-A99E8BAC8AC82XXXXX0000000XXXXXXXXXXXX00000",
    "method": "ModifyAccount",
    "jsonrpc": "2.0",
    "params": {
	"accountInfo": {
	    "PartnerId": 33493,
	    "Name": "test-device",
	    "NameAlias": "Test-Device-Alias"
	}
    }
}

Sample response

{
    "id": "jsonrpc",
    "jsonrpc": "2.0",
    "result": null,
    "visa": "33491-50121-1-1512736778-A99E8BAC8AC82XXXXX0000000XXXXXXXXXXXX00000"
}