POST api/mobile/DeviceLocation

Post Device Location Details

Request Information

URI Parameters

None.

Body Parameters

Collection of IBMS_Cloud_API.Controllers.DeviceLocationController+LocationData
NameDescriptionTypeAdditional information
Accuracy

decimal number

None.

Altitude

decimal number

None.

Bearing

decimal number

None.

Speed

decimal number

None.

DateTime

date

None.

IsCached

boolean

None.

IsMocked

boolean

None.

Location

IBMS_Cloud_API.Controllers.DeviceLocationController+LocationLongLat

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Accuracy": 1.1,
    "Altitude": 2.1,
    "Bearing": 3.1,
    "Speed": 4.1,
    "DateTime": "2025-04-28T11:14:33.914198+01:00",
    "IsCached": true,
    "IsMocked": true,
    "Location": {
      "Latitude": 1.1,
      "Longitude": 2.1
    }
  },
  {
    "Accuracy": 1.1,
    "Altitude": 2.1,
    "Bearing": 3.1,
    "Speed": 4.1,
    "DateTime": "2025-04-28T11:14:33.914198+01:00",
    "IsCached": true,
    "IsMocked": true,
    "Location": {
      "Latitude": 1.1,
      "Longitude": 2.1
    }
  }
]

text/html

Sample:
[{"Accuracy":1.1,"Altitude":2.1,"Bearing":3.1,"Speed":4.1,"DateTime":"2025-04-28T11:14:33.914198+01:00","IsCached":true,"IsMocked":true,"Location":{"Latitude":1.1,"Longitude":2.1}},{"Accuracy":1.1,"Altitude":2.1,"Bearing":3.1,"Speed":4.1,"DateTime":"2025-04-28T11:14:33.914198+01:00","IsCached":true,"IsMocked":true,"Location":{"Latitude":1.1,"Longitude":2.1}}]

application/xml, text/xml

Sample:
<ArrayOfDeviceLocationController.LocationData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IBMS_Cloud_API.Controllers">
  <DeviceLocationController.LocationData>
    <Accuracy>1.1</Accuracy>
    <Altitude>2.1</Altitude>
    <Bearing>3.1</Bearing>
    <DateTime>2025-04-28T11:14:33.914198+01:00</DateTime>
    <IsCached>true</IsCached>
    <IsMocked>true</IsMocked>
    <Location>
      <Latitude>1.1</Latitude>
      <Longitude>2.1</Longitude>
    </Location>
    <Speed>4.1</Speed>
  </DeviceLocationController.LocationData>
  <DeviceLocationController.LocationData>
    <Accuracy>1.1</Accuracy>
    <Altitude>2.1</Altitude>
    <Bearing>3.1</Bearing>
    <DateTime>2025-04-28T11:14:33.914198+01:00</DateTime>
    <IsCached>true</IsCached>
    <IsMocked>true</IsMocked>
    <Location>
      <Latitude>1.1</Latitude>
      <Longitude>2.1</Longitude>
    </Location>
    <Speed>4.1</Speed>
  </DeviceLocationController.LocationData>
</ArrayOfDeviceLocationController.LocationData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DeviceLocationResult
NameDescriptionTypeAdditional information
AppointmentCount

integer

None.

NotificationCount

integer

None.

ActionCount

integer

None.

ActionMessage

string

None.

ActionID

integer

None.

Result

string

None.

Response Formats

application/json, text/json

Sample:
{
  "AppointmentCount": 1,
  "NotificationCount": 2,
  "ActionCount": 3,
  "ActionMessage": "sample string 4",
  "ActionID": 5,
  "Result": "sample string 6"
}

text/html

Sample:
{"AppointmentCount":1,"NotificationCount":2,"ActionCount":3,"ActionMessage":"sample string 4","ActionID":5,"Result":"sample string 6"}

application/xml, text/xml

Sample:
<DeviceLocationController.Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IBMS_Cloud_API.Controllers">
  <ActionCount>3</ActionCount>
  <ActionID>5</ActionID>
  <ActionMessage>sample string 4</ActionMessage>
  <AppointmentCount>1</AppointmentCount>
  <NotificationCount>2</NotificationCount>
  <Result>sample string 6</Result>
</DeviceLocationController.Result>