PUT devices

Update Devices. Roles: ApiRole

Request Information

URI Parameters

None.

Body Parameters

Collection of DeviceUpdateData object.

Collection of DeviceUpdateData
NameDescriptionTypeAdditional information
DeviceID

Device ID

integer

None.

CustomerID

Customer ID of customer that device is associated with.

integer

None.

AltProductNumber

Device alternative product number.

string

None.

AltSerialNumber

Device alternative serial number.

string

None.

AltDeviceID

Device alternative device id.

string

None.

Location

Device location info

Location

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "DeviceID": 1,
    "CustomerID": 2,
    "AltProductNumber": "sample string 3",
    "AltSerialNumber": "sample string 4",
    "AltDeviceID": "sample string 5",
    "Location": {
      "Longitude": 1.1,
      "Latitude": 1.1,
      "Name": "sample string 1",
      "Department": "sample string 2",
      "Building": "sample string 3",
      "Floor": "sample string 4",
      "Zone": "sample string 5"
    }
  },
  {
    "DeviceID": 1,
    "CustomerID": 2,
    "AltProductNumber": "sample string 3",
    "AltSerialNumber": "sample string 4",
    "AltDeviceID": "sample string 5",
    "Location": {
      "Longitude": 1.1,
      "Latitude": 1.1,
      "Name": "sample string 1",
      "Department": "sample string 2",
      "Building": "sample string 3",
      "Floor": "sample string 4",
      "Zone": "sample string 5"
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfDeviceUpdateData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <DeviceUpdateData>
    <DeviceID>1</DeviceID>
    <CustomerID>2</CustomerID>
    <AltProductNumber>sample string 3</AltProductNumber>
    <AltSerialNumber>sample string 4</AltSerialNumber>
    <AltDeviceID>sample string 5</AltDeviceID>
    <Location>
      <Longitude>1.1</Longitude>
      <Latitude>1.1</Latitude>
      <Name>sample string 1</Name>
      <Department>sample string 2</Department>
      <Building>sample string 3</Building>
      <Floor>sample string 4</Floor>
      <Zone>sample string 5</Zone>
    </Location>
  </DeviceUpdateData>
  <DeviceUpdateData>
    <DeviceID>1</DeviceID>
    <CustomerID>2</CustomerID>
    <AltProductNumber>sample string 3</AltProductNumber>
    <AltSerialNumber>sample string 4</AltSerialNumber>
    <AltDeviceID>sample string 5</AltDeviceID>
    <Location>
      <Longitude>1.1</Longitude>
      <Latitude>1.1</Latitude>
      <Name>sample string 1</Name>
      <Department>sample string 2</Department>
      <Building>sample string 3</Building>
      <Floor>sample string 4</Floor>
      <Zone>sample string 5</Zone>
    </Location>
  </DeviceUpdateData>
</ArrayOfDeviceUpdateData>

Response Information

Resource Description

Returns updated devices as a queryable object.

Collection of Device
NameDescriptionTypeAdditional information
DeviceID

Device ID

integer

None.

CustomerID

CustomerID

integer

None.

Name

Device name

string

None.

PrinterDefGUID

Printer def guid

globally unique identifier

None.

Type

Device type

string

None.

Manufacturer

Device manufacturer

string

None.

LastTimeFound

Device last scan date.

date

None.

IPv4

Device IPv4 address

string

None.

MacAddress

Device MAC address.

string

None.

SerialNumber

Device serial number.

string

None.

ProductNumber

Device product number.

string

None.

Hostname

Device hostname

string

None.

Created

Device created date.

date

None.

AltDeviceID

Device alternate Device ID

string

None.

AltProductNumber

Device alternate Product Number

string

None.

AltSerialNumber

Device alternate Serial Number

string

None.

SuppliesObj

Device supplies info

Collection of ISupply

None.

LocationObj

Device location info

ILocation

None.

DeviceRatingObj

Device rating

IRating

None.

PrinterDefRatingObj

Printer def rating

IRating

None.

DataSources

Device data sources

Collection of IDeviceDataSource

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "DeviceID": 1,
    "CustomerID": 2,
    "Name": "sample string 3",
    "PrinterDefGUID": "4191259a-1c9a-4b1a-ad90-07dc2b389d1a",
    "Type": "sample string 5",
    "Manufacturer": "sample string 6",
    "LastTimeFound": "2018-10-20T02:44:23.9818436+00:00",
    "IPv4": "sample string 7",
    "MacAddress": "sample string 8",
    "SerialNumber": "sample string 9",
    "ProductNumber": "sample string 10",
    "Hostname": "sample string 11",
    "Created": "2018-10-20T02:44:23.9818436+00:00",
    "AltDeviceID": "sample string 13",
    "AltProductNumber": "sample string 14",
    "AltSerialNumber": "sample string 15",
    "SuppliesObj": null,
    "LocationObj": null,
    "DeviceRatingObj": null,
    "PrinterDefRatingObj": null,
    "DataSources": null
  },
  {
    "DeviceID": 1,
    "CustomerID": 2,
    "Name": "sample string 3",
    "PrinterDefGUID": "4191259a-1c9a-4b1a-ad90-07dc2b389d1a",
    "Type": "sample string 5",
    "Manufacturer": "sample string 6",
    "LastTimeFound": "2018-10-20T02:44:23.9818436+00:00",
    "IPv4": "sample string 7",
    "MacAddress": "sample string 8",
    "SerialNumber": "sample string 9",
    "ProductNumber": "sample string 10",
    "Hostname": "sample string 11",
    "Created": "2018-10-20T02:44:23.9818436+00:00",
    "AltDeviceID": "sample string 13",
    "AltProductNumber": "sample string 14",
    "AltSerialNumber": "sample string 15",
    "SuppliesObj": null,
    "LocationObj": null,
    "DeviceRatingObj": null,
    "PrinterDefRatingObj": null,
    "DataSources": null
  }
]