TrackerHub
  1. Device
TrackerHub
  • Docs
    • 01. Project Overview
    • 02. Authentication
    • 03. Error Handling
    • 04. Input Operations
    • 05. GPS Position Workflow
  • API
    • Device Type
      • Device Type
    • Tracker
      • Tracker
      • Tracker
      • Tracker
      • Tracker
    • Device
      • Create Device
        POST
      • List Device
        POST
      • Device
        GET
      • Device
        DELETE
      • Device
        PATCH
    • Position
      • Position
      • Position
      • Position
      • Create Position
      • Position :vendor
      • latest-position
      • latest-positions
      • latest-positions :deviceId
    • Configuration
      • Config
      • Config
      • Config
      • Config
    • Healthcheck
      GET
  1. Device

Device

Production reader
https://api.exati.com.br/tracking/read
Production reader
https://api.exati.com.br/tracking/read
PATCH
/device
Device
This method is responsible for updating Devices.

Request

Body Params application/json
idDevice
number 
optional
Optional, used only for searching operations
>= 1
idTracker
integer 
required
The Tracker entity ID
>= 1
idWorksite
integer 
required
The worksite this device belongs to
>= 1
idTeam
integer 
required
The team this device is assigned to
>= 1
deviceName
string 
required
The name of the Device
>= 150 characters
idType
integer 
required
The Device Type ID
>= 1
deviceCode
string 
optional
Usually the vehicles license plate, can repeat between devices
>= 50 characters
deviceUuid
string 
optional
Usually the vehicle chassis, this field must be unique across devices.
>= 50 characters
status
string 
optional
The device status
>= 20 characters
Example
{
    "idTracker": 2,
    "idWorksite": 6,
    "idTeam": 6,
    "deviceName": "testing device",
    "idType": 1,
    "deviceCode": "ABC-1234",
    "deviceUuid": "vehicle-chassis",
    "status": "active"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.exati.com.br/tracking/read/device' \
--header 'Content-Type: application/json' \
--data-raw '{
    "idTracker": 2,
    "idWorksite": 6,
    "idTeam": 6,
    "deviceName": "testing device",
    "idType": 1,
    "deviceCode": "ABC-1234",
    "deviceUuid": "vehicle-chassis",
    "status": "active"
}'

Responses

🟢200OK
application/json
Example of a Successful response
Body
status
string 
optional
ok
message
string 
optional
Entity processed successfully
Example
{
    "status": "ok",
    "message": "Entity processed successfully"
}
🟠400Bad Request
🟠409409
🟠422Parameter Error
Previous
Device
Next
Position