> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.nukio.mx/llms.txt.
> For full documentation content, see https://developers.nukio.mx/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.nukio.mx/_mcp/server.

# createGeozone

POST https://app.nukio.mx/api/v1/geozone/creategeozone/authorization
Content-Type: application/json

Reference: https://developers.nukio.mx/nukio-api/geozone/create-geozone

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/v1/geozone/creategeozone/authorization:
    post:
      operationId: create-geozone
      summary: createGeozone
      tags:
        - subpackage_geozone
      parameters:
        - name: authorization
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Geozone_createGeozone_Response_200'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                geozoneID:
                  type: string
              required:
                - geozoneID
servers:
  - url: https://app.nukio.mx
components:
  schemas:
    ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeaturesCargoaccessStates:
      type: object
      properties:
        '0':
          type: string
        '1':
          type: string
      required:
        - '0'
        - '1'
      title: >-
        ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeaturesCargoaccessStates
    ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeaturesCargoaccess:
      type: object
      properties:
        states:
          $ref: >-
            #/components/schemas/ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeaturesCargoaccessStates
        displayText:
          type: string
      required:
        - states
        - displayText
      title: >-
        ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeaturesCargoaccess
    ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeaturesEnginecutoffStates:
      type: object
      properties:
        '0':
          type: string
        '1':
          type: string
      required:
        - '0'
        - '1'
      title: >-
        ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeaturesEnginecutoffStates
    ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeaturesEnginecutoff:
      type: object
      properties:
        states:
          $ref: >-
            #/components/schemas/ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeaturesEnginecutoffStates
        displayText:
          type: string
      required:
        - states
        - displayText
      title: >-
        ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeaturesEnginecutoff
    ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeatures:
      type: object
      properties:
        cargoaccess:
          $ref: >-
            #/components/schemas/ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeaturesCargoaccess
        enginecutoff:
          $ref: >-
            #/components/schemas/ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeaturesEnginecutoff
      required:
        - cargoaccess
        - enginecutoff
      title: >-
        ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeatures
    ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsArriveFeaturesCargoaccess:
      type: object
      properties:
        state:
          description: Any type
        onText:
          type: string
        offText:
          type: string
        displayName:
          type: string
        pendingState:
          description: Any type
        isNegativeTriggered:
          type: boolean
      required:
        - onText
        - offText
        - displayName
        - isNegativeTriggered
      title: >-
        ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsArriveFeaturesCargoaccess
    ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsArriveFeaturesEnginecutoff:
      type: object
      properties:
        state:
          description: Any type
        onText:
          type: string
        offText:
          type: string
        displayName:
          type: string
        pendingState:
          description: Any type
        isNegativeTriggered:
          type: boolean
      required:
        - onText
        - offText
        - displayName
        - isNegativeTriggered
      title: >-
        ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsArriveFeaturesEnginecutoff
    ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsArriveFeatures:
      type: object
      properties:
        cargoaccess:
          $ref: >-
            #/components/schemas/ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsArriveFeaturesCargoaccess
        enginecutoff:
          $ref: >-
            #/components/schemas/ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsArriveFeaturesEnginecutoff
      required:
        - cargoaccess
        - enginecutoff
      title: >-
        ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsArriveFeatures
    ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsArrive:
      type: object
      properties:
        features:
          $ref: >-
            #/components/schemas/ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsArriveFeatures
        displayText:
          type: string
      required:
        - features
        - displayText
      title: >-
        ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsArrive
    ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsDepartFeaturesCargoaccess:
      type: object
      properties:
        state:
          description: Any type
        onText:
          type: string
        offText:
          type: string
        displayName:
          type: string
        pendingState:
          description: Any type
        isNegativeTriggered:
          type: boolean
      required:
        - onText
        - offText
        - displayName
        - isNegativeTriggered
      title: >-
        ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsDepartFeaturesCargoaccess
    ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsDepartFeaturesEnginecutoff:
      type: object
      properties:
        state:
          description: Any type
        onText:
          type: string
        offText:
          type: string
        displayName:
          type: string
        pendingState:
          description: Any type
        isNegativeTriggered:
          type: boolean
      required:
        - onText
        - offText
        - displayName
        - isNegativeTriggered
      title: >-
        ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsDepartFeaturesEnginecutoff
    ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsDepartFeatures:
      type: object
      properties:
        cargoaccess:
          $ref: >-
            #/components/schemas/ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsDepartFeaturesCargoaccess
        enginecutoff:
          $ref: >-
            #/components/schemas/ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsDepartFeaturesEnginecutoff
      required:
        - cargoaccess
        - enginecutoff
      title: >-
        ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsDepartFeatures
    ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsDepart:
      type: object
      properties:
        features:
          $ref: >-
            #/components/schemas/ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsDepartFeatures
        displayText:
          type: string
      required:
        - features
        - displayText
      title: >-
        ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsDepart
    ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSections:
      type: object
      properties:
        arrive:
          $ref: >-
            #/components/schemas/ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsArrive
        depart:
          $ref: >-
            #/components/schemas/ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSectionsDepart
      required:
        - arrive
        - depart
      title: >-
        ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSections
    Geozone_createGeozone_Response_200:
      type: object
      properties:
        success:
          type: string
        features:
          $ref: >-
            #/components/schemas/ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaFeatures
        sections:
          $ref: >-
            #/components/schemas/ApiV1GeozoneCreategeozoneAuthorizationPostResponsesContentApplicationJsonSchemaSections
        geozoneID:
          type: string
        geozoneType:
          type: integer
        status_code:
          type: string
        geozonePoint1:
          type: string
        geozonePoint2:
          type: string
        geozonePoint3:
          type: string
        geozonePoint4:
          type: string
        geozonePoint5:
          type: string
        geozonePoint6:
          type: string
        geozonePoint7:
          type: string
        geozonePoint8:
          type: string
        geozoneRadius:
          type: integer
        geozoneAlertExit:
          type: boolean
        geozoneAlertEntry:
          type: boolean
        geozoneDisplayName:
          type: string
        geozoneArrivalEngineOn:
          type: boolean
        geozoneArrivalCabinLock:
          type: boolean
        geozoneArrivalCargoLock:
          type: boolean
        geozoneArrivalEngineOff:
          type: boolean
        geozoneDepartureEngineOn:
          type: boolean
        geozoneArrivalCabinUnlock:
          type: boolean
        geozoneArrivalCargoUnlock:
          type: boolean
        geozoneDepartureCabinLock:
          type: boolean
        geozoneDepartureCargoLock:
          type: boolean
        geozoneDepartureEngineOff:
          type: boolean
        hasUpdateGeozonePrivileges:
          type: boolean
        geozoneDepartureCabinUnlock:
          type: boolean
        geozoneDepartureCargoUnlock:
          type: boolean
      required:
        - success
        - features
        - sections
        - geozoneID
        - geozoneType
        - status_code
        - geozonePoint1
        - geozonePoint2
        - geozonePoint3
        - geozonePoint4
        - geozonePoint5
        - geozonePoint6
        - geozonePoint7
        - geozonePoint8
        - geozoneRadius
        - geozoneAlertExit
        - geozoneAlertEntry
        - geozoneDisplayName
        - geozoneArrivalEngineOn
        - geozoneArrivalCabinLock
        - geozoneArrivalCargoLock
        - geozoneArrivalEngineOff
        - geozoneDepartureEngineOn
        - geozoneArrivalCabinUnlock
        - geozoneArrivalCargoUnlock
        - geozoneDepartureCabinLock
        - geozoneDepartureCargoLock
        - geozoneDepartureEngineOff
        - hasUpdateGeozonePrivileges
        - geozoneDepartureCabinUnlock
        - geozoneDepartureCargoUnlock
      title: Geozone_createGeozone_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: authorization

```

## SDK Code Examples

```python Geozone_createGeozone_example
import requests

url = "https://app.nukio.mx/api/v1/geozone/creategeozone/authorization"

payload = { "geozoneID": "newGeozone" }
headers = {
    "authorization": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Geozone_createGeozone_example
const url = 'https://app.nukio.mx/api/v1/geozone/creategeozone/authorization';
const options = {
  method: 'POST',
  headers: {authorization: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"geozoneID":"newGeozone"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Geozone_createGeozone_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://app.nukio.mx/api/v1/geozone/creategeozone/authorization"

	payload := strings.NewReader("{\n  \"geozoneID\": \"newGeozone\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("authorization", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Geozone_createGeozone_example
require 'uri'
require 'net/http'

url = URI("https://app.nukio.mx/api/v1/geozone/creategeozone/authorization")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["authorization"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"geozoneID\": \"newGeozone\"\n}"

response = http.request(request)
puts response.read_body
```

```java Geozone_createGeozone_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://app.nukio.mx/api/v1/geozone/creategeozone/authorization")
  .header("authorization", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"geozoneID\": \"newGeozone\"\n}")
  .asString();
```

```php Geozone_createGeozone_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://app.nukio.mx/api/v1/geozone/creategeozone/authorization', [
  'body' => '{
  "geozoneID": "newGeozone"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'authorization' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Geozone_createGeozone_example
using RestSharp;

var client = new RestClient("https://app.nukio.mx/api/v1/geozone/creategeozone/authorization");
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"geozoneID\": \"newGeozone\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Geozone_createGeozone_example
import Foundation

let headers = [
  "authorization": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["geozoneID": "newGeozone"] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://app.nukio.mx/api/v1/geozone/creategeozone/authorization")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```