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

In the below example, we are going to re-assign a device to another customer. To do so, submit the ID of the new customer together with the device name.

All other changes can be made by providing the new setting, information or value for the required parameter.

{
    "id": "jsonrpc",
    "visa": "{{visa}}",
    "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": "{{visa}}"
}