GET api/S1Units/GroupCurrentPosition?groupId={groupId}

Returns all S1 units from specified group, including current position if available

Request Information

URI Parameters

NameDescriptionTypeAdditional information
groupId

integer32

Required

Body Parameters

None.

Response Information

Resource Description

Returns all S1 units from specified group, including current position if available

Collection of S1CurrentLocationModel
NameDescriptionTypeAdditional information
Unit

S1 Unit

S1UnitModel

None.

CurrentPosition

CurrentPosition

PositionModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Unit": {
      "SerialNumber": "sample string 1",
      "UnitName": "sample string 2",
      "IntervalSeconds": 1,
      "UnitConfiguredIntervalSeconds": 1,
      "RFIDBeaconOn": true,
      "FirstReportHour": 64,
      "FirstGPSHour": 64,
      "GPSIntervalSeconds": 1,
      "ConfigurationPending": true,
      "UnitTypeId": 1,
      "UnitTypeName": "sample string 3",
      "ReferenceId": "sample string 4",
      "Closed": true,
      "RequestedClosed": true,
      "Suspended": true,
      "FirmwareVersion": 7.1,
      "DeliveryDate": "2024-05-19T15:32:10.8264315+00:00",
      "BatteryInstalledDate": "2024-05-19T15:32:10.8264315+00:00",
      "RFIDBeaconOnSeconds": 8,
      "UserGroupId": 1,
      "UserGroupName": "sample string 9",
      "ReplacedBySerialnumber": "sample string 10",
      "ReplacingSerialnumber": "sample string 11",
      "S1CInputSettings": {
        "ReadIntervalMinutes": 1,
        "Input0": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        },
        "Input1": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        },
        "Input2": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        },
        "Input3": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        },
        "Load0": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        },
        "Load1": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        },
        "Load0b": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        },
        "Load1b": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        }
      },
      "CurrentSubscription": "sample string 12",
      "CurrentSubscriptionStartDate": "2024-05-19T15:32:10.8264315+00:00",
      "CurrentSubscriptionEndDate": "2024-05-19T15:32:10.8264315+00:00"
    },
    "CurrentPosition": {
      "Id": 1,
      "SerialNumber": "sample string 2",
      "ReferenceId": "sample string 3",
      "Timestamp": "2024-05-19T15:32:10.8264315+00:00",
      "Latitude": 5.1,
      "Longitude": 6.1,
      "Accuracy": 7,
      "Speed": 1.0,
      "Altitude": 1.0,
      "Heading": 1.0,
      "Trigger": 0,
      "PositionType": 0,
      "GSMNetwork": "sample string 8",
      "ServingCell": {
        "MobileCountryCode": 2,
        "MobileNetworkCode": 3,
        "LocationAreaCode": 4,
        "CellId": 5,
        "Signal": 6,
        "CellType": "sample string 7",
        "TimeAdvance": 1
      },
      "NeighbourCells": [
        {
          "MobileCountryCode": 2,
          "MobileNetworkCode": 3,
          "LocationAreaCode": 4,
          "CellId": 5,
          "Signal": 6,
          "CellType": "sample string 7",
          "TimeAdvance": 1
        },
        {
          "MobileCountryCode": 2,
          "MobileNetworkCode": 3,
          "LocationAreaCode": 4,
          "CellId": 5,
          "Signal": 6,
          "CellType": "sample string 7",
          "TimeAdvance": 1
        }
      ],
      "Location": null,
      "MessageId": 9,
      "ServerDate": "2024-05-19T15:32:10.8264315+00:00",
      "IsLog": true,
      "IsSMS": true
    }
  },
  {
    "Unit": {
      "SerialNumber": "sample string 1",
      "UnitName": "sample string 2",
      "IntervalSeconds": 1,
      "UnitConfiguredIntervalSeconds": 1,
      "RFIDBeaconOn": true,
      "FirstReportHour": 64,
      "FirstGPSHour": 64,
      "GPSIntervalSeconds": 1,
      "ConfigurationPending": true,
      "UnitTypeId": 1,
      "UnitTypeName": "sample string 3",
      "ReferenceId": "sample string 4",
      "Closed": true,
      "RequestedClosed": true,
      "Suspended": true,
      "FirmwareVersion": 7.1,
      "DeliveryDate": "2024-05-19T15:32:10.8264315+00:00",
      "BatteryInstalledDate": "2024-05-19T15:32:10.8264315+00:00",
      "RFIDBeaconOnSeconds": 8,
      "UserGroupId": 1,
      "UserGroupName": "sample string 9",
      "ReplacedBySerialnumber": "sample string 10",
      "ReplacingSerialnumber": "sample string 11",
      "S1CInputSettings": {
        "ReadIntervalMinutes": 1,
        "Input0": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        },
        "Input1": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        },
        "Input2": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        },
        "Input3": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        },
        "Load0": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        },
        "Load1": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        },
        "Load0b": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        },
        "Load1b": {
          "Low": 1,
          "High": 2,
          "GPSTrigger": true,
          "ReportTrigger": true
        }
      },
      "CurrentSubscription": "sample string 12",
      "CurrentSubscriptionStartDate": "2024-05-19T15:32:10.8264315+00:00",
      "CurrentSubscriptionEndDate": "2024-05-19T15:32:10.8264315+00:00"
    },
    "CurrentPosition": {
      "Id": 1,
      "SerialNumber": "sample string 2",
      "ReferenceId": "sample string 3",
      "Timestamp": "2024-05-19T15:32:10.8264315+00:00",
      "Latitude": 5.1,
      "Longitude": 6.1,
      "Accuracy": 7,
      "Speed": 1.0,
      "Altitude": 1.0,
      "Heading": 1.0,
      "Trigger": 0,
      "PositionType": 0,
      "GSMNetwork": "sample string 8",
      "ServingCell": {
        "MobileCountryCode": 2,
        "MobileNetworkCode": 3,
        "LocationAreaCode": 4,
        "CellId": 5,
        "Signal": 6,
        "CellType": "sample string 7",
        "TimeAdvance": 1
      },
      "NeighbourCells": [
        {
          "MobileCountryCode": 2,
          "MobileNetworkCode": 3,
          "LocationAreaCode": 4,
          "CellId": 5,
          "Signal": 6,
          "CellType": "sample string 7",
          "TimeAdvance": 1
        },
        {
          "MobileCountryCode": 2,
          "MobileNetworkCode": 3,
          "LocationAreaCode": 4,
          "CellId": 5,
          "Signal": 6,
          "CellType": "sample string 7",
          "TimeAdvance": 1
        }
      ],
      "Location": null,
      "MessageId": 9,
      "ServerDate": "2024-05-19T15:32:10.8264315+00:00",
      "IsLog": true,
      "IsSMS": true
    }
  }
]

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.