PUT api/Admin/MoveDeviceLogs?deviceID={deviceID}&deviceType={deviceType}&sourceClientID={sourceClientID}&targetClientID={targetClientID}

Move Device Logs from one Client to another. Typically used to manually fix issues where Logs become orphaned

Request Information

URI Parameters

NameDescriptionTypeAdditional information
deviceID

Device integer ID to handle

integer

Required

deviceType

Device Type, either Device or CalculatedDevice

OwnerType

Required

sourceClientID

Integer ID of the Client Log database to move logs from

integer

Required

targetClientID

Optional integer ID of the Client Log database to move logs to. If not provided, it will use the Device's current Client database

integer

None.

Body Parameters

None.

Response Information

Resource Description

Total number of Logs handled

GetCountResponse
NameDescriptionTypeAdditional information
Count

The count

integer

None.

Messages

Array of messages

Collection of Message

None.

ServerInformation

Relevant information regarding the Server

ServerInformation

None.

VersionInformation

Relevant information regarding the API's version

VersionInformation

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "Messages": [
    {
      "Severity": 0,
      "MessageCode": 1,
      "CodeDesc": 2,
      "MessageText": "sample string 3",
      "RecordNumber": 4
    },
    {
      "Severity": 0,
      "MessageCode": 1,
      "CodeDesc": 2,
      "MessageText": "sample string 3",
      "RecordNumber": 4
    }
  ],
  "ServerInformation": {
    "CurrentTimeUTC": "2026-01-09T23:46:34.4090948+10:00",
    "BuildDateUTC": "2026-01-09T23:46:34.4090948+10:00"
  },
  "VersionInformation": {
    "Major": 1,
    "Minor": 8,
    "Hotfix": 0,
    "Beta": true,
    "Version": "1.8.0.BETA"
  },
  "Count": 1
}