This method is responsible for creating devices. Before a device can be created, its related entity dependencies—Tracker and Device Type—must already exist. These dependencies should be defined through their respective endpoints.
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.