POST device/locations
Receives a new device coordinate.
Remarks
C4M Error Code returned:
null Location stored successfully.
200 - Ok Location stored successfully.
400 - Bad Request Cannot store location without date.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| receivedLocation | Location data. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"accuracy": 1.1,
"altitude": 1.1,
"bearing": 1.1,
"coordinate": {
"latitude": 1.0,
"longitude": 2.0
},
"deviceDate": {
"date": "2020-05-15T17:03:27.6960553-03:00",
"timeZoneId": "E. South America Standard Time",
"utcOffset": -180
},
"speed": 1.1
}
Response Information
Operation result.
Response body formats
application/json, text/json
Sample:
Sample not available.