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
    • User
    • Geozone
      • GETgetGeozones
      • POSTcreateGeozone
      • POSTdeleteGeozone
      • POSTupdateGeozone
      • GETgetGeozone
      • GETgetGeozones range
    • Fleets
    • Notifications
    • Routes
    • Passengers
    • Account Status
    • Nukio SDK
LogoLogo
Nukio APIGeozone

createGeozone

||View as Markdown|
POST
https://app.nukio.mx/api/v1/geozone/creategeozone/authorization
POST
/api/v1/geozone/creategeozone/authorization
$curl -X POST https://app.nukio.mx/api/v1/geozone/creategeozone/authorization \
> -H "authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "geozoneID": "newGeozone"
>}'
200Geozone_createGeozone_example
1{
2 "success": "1",
3 "features": {
4 "cargoaccess": {
5 "states": {
6 "0": "Disallowed",
7 "1": "Allowed"
8 },
9 "displayText": "Cargo Access"
10 },
11 "enginecutoff": {
12 "states": {
13 "0": "Disabled",
14 "1": "Enabled"
15 },
16 "displayText": "Engine Cutoff"
17 }
18 },
19 "sections": {
20 "arrive": {
21 "features": {
22 "cargoaccess": {
23 "onText": "on",
24 "offText": "off",
25 "displayName": "Cargo Access",
26 "isNegativeTriggered": false
27 },
28 "enginecutoff": {
29 "onText": "on",
30 "offText": "off",
31 "displayName": "Engine Cutoff",
32 "isNegativeTriggered": false
33 }
34 },
35 "displayText": "Arrival"
36 },
37 "depart": {
38 "features": {
39 "cargoaccess": {
40 "onText": "on",
41 "offText": "off",
42 "displayName": "Cargo Access",
43 "isNegativeTriggered": false
44 },
45 "enginecutoff": {
46 "onText": "on",
47 "offText": "off",
48 "displayName": "Engine Cutoff",
49 "isNegativeTriggered": false
50 }
51 },
52 "displayText": "Departure"
53 }
54 },
55 "geozoneID": "testzone1",
56 "geozoneType": 3,
57 "status_code": "200",
58 "geozonePoint1": "0.00000,0.00000",
59 "geozonePoint2": "0.00000,0.00000",
60 "geozonePoint3": "0.00000,0.00000",
61 "geozonePoint4": "0.00000,0.00000",
62 "geozonePoint5": "0.00000,0.00000",
63 "geozonePoint6": "0.00000,0.00000",
64 "geozonePoint7": "0.00000,0.00000",
65 "geozonePoint8": "0.00000,0.00000",
66 "geozoneRadius": 500,
67 "geozoneAlertExit": false,
68 "geozoneAlertEntry": false,
69 "geozoneDisplayName": "",
70 "geozoneArrivalEngineOn": false,
71 "geozoneArrivalCabinLock": false,
72 "geozoneArrivalCargoLock": false,
73 "geozoneArrivalEngineOff": false,
74 "geozoneDepartureEngineOn": false,
75 "geozoneArrivalCabinUnlock": false,
76 "geozoneArrivalCargoUnlock": false,
77 "geozoneDepartureCabinLock": false,
78 "geozoneDepartureCargoLock": false,
79 "geozoneDepartureEngineOff": false,
80 "hasUpdateGeozonePrivileges": true,
81 "geozoneDepartureCabinUnlock": false,
82 "geozoneDepartureCargoUnlock": false
83}
Was this page helpful?
Previous

getGeozones

Next

deleteGeozone

Built with

Authentication

authorizationstring
API Key authentication via header

Request

This endpoint expects an object.
geozoneIDstringRequired

Response headers

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

Response

OK
successstring
featuresobject
sectionsobject
geozoneIDstring
geozoneTypeinteger
status_codestring
geozonePoint1string
geozonePoint2string
geozonePoint3string
geozonePoint4string
geozonePoint5string
geozonePoint6string
geozonePoint7string
geozonePoint8string
geozoneRadiusinteger
geozoneAlertExitboolean
geozoneAlertEntryboolean
geozoneDisplayNamestring
geozoneArrivalEngineOnboolean
geozoneArrivalCabinLockboolean
geozoneArrivalCargoLockboolean
geozoneArrivalEngineOffboolean
geozoneDepartureEngineOnboolean
geozoneArrivalCabinUnlockboolean
geozoneArrivalCargoUnlockboolean
geozoneDepartureCabinLockboolean
geozoneDepartureCargoLockboolean
geozoneDepartureEngineOffboolean
hasUpdateGeozonePrivilegesboolean
geozoneDepartureCabinUnlockboolean
geozoneDepartureCargoUnlockboolean