SolarWinds Backup Help

Changing customer properties in JSON-RPC API

To change the properties of an existing customer, use the ModifyPartner method.You can change the following properties:

  • Re-assign the customer to another customer
  • Change the service types provided to the customer
  • Set flags to the customer
  • Change the address of the customer
  • Change a trial customer to in production

Customer ID's cannot be changed.

Required parameters

Parameter Description Supported values
partnerInfo A group of parameters related to the partner See below table for child parameters

Optional parameters

Parameter Description Supported values
ForceRemoveCustomColumnValuesInOldScope Do you wish to force remove custom column values for the device
  • True
  • False

Optional PartnerInfo child parameters

Parameter Description Supported values
Id The ID of the customer whose properties you want to change Int
Name The name to assign to the customer String
ParentId The ID of the parent customer Int
Level The level of the customerin the hierarchy tree (must be lower than the level of the parent customer)
  • Undefined
  • Distributor
  • SubDistributor
  • Reseller
  • EndCustomer
ServiceType The type of service provided to the customer
  • Undefined
  • AllInclusive
  • SoftwareOnly
ChildServiceTypes The type of service the customer company can provide to its own customers
  • Undefined
  • AllInclusive
  • SoftwareOnly
State The current state of the customer
  • Undefined
  • InProduction
  • InTrial
LocationId

The location that the customeris assigned to (it is used to set a default storage pool for the customer's devices).

Normally, the location is identified automatically by the country in which a customeris located (the Country parameter), but you can specify it yourself as well.

Int

You can get the list of available locations using the EnumerateLocations method.

Flags

Properties the customer has configured

  • Undefined
  • HasCustomBranding
  • HasCustomUpdatePackages
  • UnsubscribedFromTrialNotifications
  • CanInvoiceOthers
  • Count
Company A group of parameters related to the customer's profile
  • PostAddress (has child parameters of its own)
  • PhoneNumber
  • FaxNumber
  • WebsiteAddress
  • LegalCompanyName
  • ChamberOfCommerceNumber
  • VatNumber
  • BankAccountNumber
  • BillingContactPersonId

All support string format

Sample request

{
	"id": "jsonrpc",
	"visa": "33491-50121-1-1512736778-A99E8BAC8AC82XXXXX0000000XXXXXXXXXXXX00000",
	"method": "ModifyPartner",
	"jsonrpc": "2.0",
	"params": {
		"partnerInfo": {
			"Id": 55806,
			"ParentId": 33491,
			"Level": "Distributor",
			"ServiceType": "AllInclusive",
			"ChildServiceTypes": ["AllInclusive"],
			"Company": {
				"LegalCompanyName": "Smart Telecom Arkansas",
				"PhoneNumber": "+15013670000",
				"ChamberOfCommerceNumber": "916YY1000",
				"FaxNumber": "+15013670000",
				"VatNumber": "CY99999999L",
				"PostAddress": {
					"State": "AR",
					"District": "N/A",
					"Country": "USA",
					"City": "Little Rock",
					"Address": "Liberty Blvd. 1B",
					"ZipCode": "72210"
				},
				"Name": "Smart Telecom AR",
				"State": "InProduction"
			}
		}
}

Sample response

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