---
title: "Create a zone"
method: POST
path: "/orgs/{orgId}/zones"
tags: ["orgs/zones"]
---

# Create a zone

`POST /orgs/{orgId}/zones`

__JWT is required for this endpoint with at least one of the following scopes__: o{params.orgId}-site:w,o{params.orgId}-siteGeneral:w,o{params.orgId}-admin:w,o{params.orgId}-quickStart:w,o:w,s-o:w<br/><br/>__Endpoint name__: createZone

## Path parameters

- `orgId` integer, required

## Request body

- object
  - `name` string, required
  - `siteId` integer, required
  - `description` string, nullable
  - `apbResetIcalText` string, nullable
  - `apbExpirationSeconds` integer, nullable
  - `apbUseContactSensor` boolean
  - `apbAllowSharedOrgReset` boolean

## Response `201`

Created

- object
  - `data` object
    - `id` integer, required
    - `opal` string
    - `name` string
    - `description` string, nullable
    - `org` object
      - `id` integer, required
      - `name` string
    - `site` object, nullable
      - `id` integer, required
      - `name` string
    - `createdAt` string, date
    - `updatedAt` string, date
    - `apbResetIcalText` string, nullable
    - `apbExpirationSeconds` integer, nullable
    - `apbUseContactSensor` boolean
    - `apbAllowSharedOrgReset` boolean
    - `zoneShares` object[]
      - `orgId` integer
    - `entries` object[]
      - `id` integer, required
      - `name` string
      - `acu` object
        - `id` integer, required
      - `wirelessLock` object, nullable
        - `id` number, required
        - `noTourLockId` integer, nullable
        - `isOffline` boolean
        - `wirelessLockDbEntries` object[]
          - `credentialNumberHash` string
    - `apbAreas` object[]
      - `id` integer, required
      - `name` string
    - `entryCount` integer
    - `offlineEntryCount` integer
    - `userCount` integer
    - `groupCount` integer
  - `meta` object
    - `accessToken` object, nullable
      - `scopeUpdatedAt` string, date
    - `siteSpecificAccess` object, nullable
      - `isSiteSpecific` boolean
      - `siteIds` integer[], nullable
      - `siteIdsByScope` object, nullable
        - `string` integer[], nullable

---

[API](https://skmtc.net/openpath/apis/openpath-api-documentation.md) · [All operations](https://skmtc.net/openpath/apis/openpath-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openpath/openpath-api-documentation/versions/d8a888c114fa/schema)
