For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Nukio API
    • Authentication
    • Device
      • POSTfeature engineCutoff
      • POSTcreatedevice
      • POSTdeletedevice
      • POSTupdatedevice
      • GETdiagnosticall
      • GETgetallDevices
      • GETfirmwareUpdate
      • POSTupdateAddress
      • GETgetDevice
      • GETlatest
      • GETdiagnostic
      • GETlostVehicles
      • GETsend
      • GETgetDeviceActivations
      • GETcreateActivation
      • POSTfeature cargoAccess
      • GETdeviceMetadata
      • POSTupdatedevice cargoAccess
      • POSTupdatedevice engineCutoff
      • GETdeviceData
      • GETgetDeviceActivations range
      • GETdeviceData range
    • User
    • Geozone
    • Fleets
    • Notifications
    • Routes
    • Passengers
    • Account Status
    • Nukio SDK
LogoLogo
Nukio APIDevice

updatedevice

||View as Markdown|
POST
https://app.nukio.mx/api/v1/device/updatedevice/authorization
POST
/api/v1/device/updatedevice/authorization
$curl -X POST https://app.nukio.mx/api/v1/device/updatedevice/authorization \
> -H "authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "sms": "sms",
> "deviceID": "deviceID",
> "uniqueid": "uniqueID",
> "devicedriver": "devicedriver",
> "devicedescription": "devicedescription"
>}'
200Device_updatedevice_example
1{
2 "state": {
3 "cargoaccess": {
4 "state": "0",
5 "onText": "on",
6 "offText": "off",
7 "displayName": "Cargo Access",
8 "isNegativeTriggered": false
9 },
10 "enginecutoff": {
11 "state": "0",
12 "onText": "on",
13 "offText": "off",
14 "displayName": "Engine Cutoff",
15 "isNegativeTriggered": false
16 }
17 },
18 "pinTag": "",
19 "sensors": {
20 "fuel": {
21 "state": "0",
22 "onText": "on",
23 "offText": "off",
24 "displayName": "Fuel Sensor",
25 "isNegativeTriggered": true
26 },
27 "panic": {
28 "state": "0",
29 "onText": "on",
30 "offText": "off",
31 "displayName": "Panic",
32 "isNegativeTriggered": true
33 },
34 "ignition": {
35 "state": "0",
36 "onText": "on",
37 "offText": "off",
38 "displayName": "Ignition",
39 "isNegativeTriggered": false
40 },
41 "cargoaccess": {
42 "state": "0",
43 "onText": "on",
44 "offText": "off",
45 "displayName": "Cargo Access",
46 "isNegativeTriggered": false
47 },
48 "enginecutoff": {
49 "state": "0",
50 "onText": "on",
51 "offText": "off",
52 "displayName": "Engine Cutoff",
53 "isNegativeTriggered": false
54 }
55 },
56 "success": "1",
57 "deviceID": "1234",
58 "features": {
59 "cargoaccess": {
60 "states": {
61 "0": "Disallowed",
62 "1": "Allowed"
63 },
64 "displayText": "Cargo Access"
65 },
66 "enginecutoff": {
67 "states": {
68 "0": "Disabled",
69 "1": "Enabled"
70 },
71 "displayText": "Engine Cutoff"
72 }
73 },
74 "pinColor": "FF0000",
75 "deviceType": "",
76 "fuelLevels": [],
77 "authorities": {},
78 "status_code": "200",
79 "deviceDriver": "test Driver",
80 "deviceUnique": "1234",
81 "deviceCreatedOn": 1780107221,
82 "equipmentTypeId": "",
83 "deviceDescription": "test",
84 "deviceDisplayName": "",
85 "deviceNotifyEmail": "",
86 "equipmentTypeDesc": "Default Mapping Template",
87 "hasPendingCommands": "false",
88 "deviceLastHeartbeat": 0,
89 "additionalPinDisplay": "",
90 "hasUpdateDevicePrivileges": true
91}
Was this page helpful?
Previous

deletedevice

Next

diagnosticall

Built with

Authentication

authorizationstring
API Key authentication via header

Request

This endpoint expects an object.
smsstringRequired
deviceIDstringRequired
uniqueidstringRequired
devicedriverstringRequired
devicedescriptionstringRequired

Response headers

pragmastring
:statusstring
expiresstring
accept-rangesstring
cache-controlstring
x-frame-optionsstring
x-xss-protectionstring
x-application-contextstring
x-content-type-optionsstring

Response

OK
stateobject
pinTagstring
sensorsobject
successstring
deviceIDstring
featuresobject
pinColorstring
deviceTypestring
fuelLevelslist of any
authoritiesobject
status_codestring
deviceDriverstring
deviceUniquestring
deviceCreatedOninteger
equipmentTypeIdstring
deviceDescriptionstring
deviceDisplayNamestring
deviceNotifyEmailstring
equipmentTypeDescstring
hasPendingCommandsstring
deviceLastHeartbeatinteger
additionalPinDisplaystring
hasUpdateDevicePrivilegesboolean
fuelLevelAverageany