POST api/BlueTraker
Request Information
URI Parameters
None.
Body Parameters
BlueTrakerDataModelsName | Description | Type | Additional information |
---|---|---|---|
Version | integer |
None. |
|
DeviceId | integer |
None. |
|
Latitude | decimal number |
None. |
|
Longitude | decimal number |
None. |
|
Speed | decimal number |
None. |
|
Heading | integer |
None. |
|
GpsTime | date |
None. |
|
ReceivedTime | date |
None. |
|
ExtPowerVoltage | decimal number |
None. |
|
VesselRegisterNumber | string |
None. |
|
SatSignalQuality | integer |
None. |
|
GSMSignalQuality | integer |
None. |
|
GPSSatelliteNumber | integer |
None. |
|
FailureReason | integer |
None. |
|
AlertButton | boolean |
None. |
|
VesselActivity | integer |
None. |
|
RawData | string |
None. |
|
GPSStatus | boolean |
None. |
|
MTUFirmwareVersion | string |
None. |
|
HelloMessage | string |
None. |
Request Formats
application/json, text/json
Sample:
Generation I Sample { "Version": 1, "DeviceId": 1123456, "Latitude": 13.120012, "Longitude": 110.112233, "Speed": 1.2, "Heading": 1, "GpsTime": "2024-12-28T08:42:26.7790118Z", "ReceivedTime": "2024-12-28T08:43:26.7790118Z" } Generation II Sample { "Version": 2, "DeviceId": 1123456, "Latitude": 13.120012, "Longitude": 110.112233, "Speed": 1.2, "Heading": 1, "GpsTime": "2024-12-28T08:42:26.7790118Z", "ReceivedTime": "2024-12-28T08:43:26.7790118Z", "ExtPowerVoltage": 120.0, "VesselRegisterNumber": "123456789", "SatSignalQuality": 4, "GSMSignalQuality": 29, "GPSSatelliteNumber": 2, "FailureReason": 0, "AlertButton": true, "VesselActivity": 1, "RawData": "", "GPSStatus": true, "MTUFirmwareVersion": "2.0", "HelloMessage": "" }
text/html
Sample:
{"Version":1,"DeviceId":2,"Latitude":3.0,"Longitude":4.0,"Speed":5.1,"Heading":6,"GpsTime":"2024-12-28T23:35:55.7040277+07:00","ReceivedTime":"2024-12-28T23:35:55.7040277+07:00","ExtPowerVoltage":1.1,"VesselRegisterNumber":"sample string 9","SatSignalQuality":1,"GSMSignalQuality":1,"GPSSatelliteNumber":1,"FailureReason":1,"AlertButton":true,"VesselActivity":1,"RawData":"sample string 10","GPSStatus":true,"MTUFirmwareVersion":"sample string 11","HelloMessage":"sample string 12"}
application/xml, text/xml
Sample:
Generation I Sample <?xml version="1.0"?> <BlueTrakerDataModels xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Version>1</Version> <DeviceId>1123456</DeviceId> <Latitude>13.120012</Latitude> <Longitude>110.112233</Longitude> <Speed>1.2</Speed> <Heading>1</Heading> <GpsTime>2024-12-28T08:42:26.7790118Z</GpsTime> <ReceivedTime>2024-12-28T08:43:26.7790118Z</ReceivedTime> <ExtPowerVoltage xsi:nil="true" /> <SatSignalQuality xsi:nil="true" /> <GSMSignalQuality xsi:nil="true" /> <GPSSatelliteNumber xsi:nil="true" /> <FailureReason xsi:nil="true" /> <AlertButton xsi:nil="true" /> <VesselActivity xsi:nil="true" /> <GPSStatus xsi:nil="true" /> </BlueTrakerDataModels> Generation II Sample <?xml version="1.0"?> <BlueTrakerDataModels xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Version>2</Version> <DeviceId>1123456</DeviceId> <Latitude>13.120012</Latitude> <Longitude>110.112233</Longitude> <Speed>1.2</Speed> <Heading>1</Heading> <GpsTime>2024-12-28T08:42:26.7790118Z</GpsTime> <ReceivedTime>2024-12-28T08:43:26.7790118Z</ReceivedTime> <ExtPowerVoltage>120</ExtPowerVoltage> <VesselRegisterNumber>123456789</VesselRegisterNumber> <SatSignalQuality>4</SatSignalQuality> <GSMSignalQuality>29</GSMSignalQuality> <GPSSatelliteNumber>2</GPSSatelliteNumber> <FailureReason>0</FailureReason> <AlertButton>true</AlertButton> <VesselActivity>1</VesselActivity> <RawData /> <GPSStatus>true</GPSStatus> <MTUFirmwareVersion>2.0</MTUFirmwareVersion> <HelloMessage /> </BlueTrakerDataModels>
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |