---
title: "Create a zone anti-passback area"
method: POST
path: "/orgs/{orgId}/zones/{zoneId}/apbAreas"
tags: ["orgs/zones"]
---

# Create a zone anti-passback area

`POST /orgs/{orgId}/zones/{zoneId}/apbAreas`

__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:w,s-o:w<br/><br/>__Endpoint name__: createZoneApbArea

## Path parameters

- `orgId` integer, required
- `zoneId` integer, required

## Request body

- object
  - `name` string, required
  - `occupancyLimit` integer, nullable
  - `occupancyLimitMode` 'alert' | 'enforce', nullable
  - `apbFlows` object[]
    - `direction` 'inbound' | 'outbound', required
    - `mode` 'alert' | 'enforce', nullable
    - `entryIds` integer[]

## Response `201`

Created

- object
  - `data` object
    - `id` integer, required
    - `name` string
    - `occupancyLimit` integer, nullable
    - `occupancyLimitMode` 'alert' | 'enforce', nullable
    - `createdAt` string, date
    - `updatedAt` string, date
    - `apbFlows` object[]
      - `id` integer, required
      - `direction` 'inbound' | 'outbound', required
      - `mode` 'alert' | 'enforce', nullable
      - `entries` object[]
        - `id` integer, required
  - `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)
