Zones

Named groups of areas that need not be adjacent and may be at different sites (IFC zone), such as every lobby.

The zone model

A named group of areas, which may be at different sites.

Properties

  • Name
    id
    Type
    string
    Description

    Zone ID.

  • Name
    etag
    Type
    string
    Description

    Current version.

  • Name
    name
    Type
    string
    Description

    Display name, unique within the organization.

  • Name
    description
    Type
    string
    Description

    Free text.

  • Name
    area_ids
    Type
    array of strings
    Description

    The areas in the zone.

  • Name
    labels
    Type
    object
    Description

    Labels.

  • Name
    managed_by
    Type
    string
    Description

    The tool that manages this resource, such as terraform. Can be null.

  • Name
    created_at
    Type
    timestamp
    Description

    When the zone was created.

  • Name
    updated_at
    Type
    timestamp
    Description

    When the zone last changed.


GET/v1/zones

List zones

Needs the zones:read scope.

Query parameters

  • Name
    page_size
    Type
    integer
    Description

    Results per page, 1 to 200. 0 or absent means 50; more than 200 means 200 (AIP-158).

  • Name
    page_token
    Type
    string
    Description

    next_page_token from the previous page.

  • Name
    updated_since
    Type
    timestamp
    Description

    Only resources changed at or after this time.

  • Name
    area_id
    Type
    string
    Description

    Only zones that contain this area.

Request

GET
/v1/zones
curl https://acme.ext.passway.com/v1/zones \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "data": [
    {
      "id": "zone_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "etag": "3f9a",
      "name": "Amenities",
      "description": "…",
      "area_ids": [
        "area_01jd8k3m2v9x4q7r5t6w8y0z1a"
      ],
      "labels": {
        "passway.example/cost-center": "4410",
        "team": "facilities"
      },
      "managed_by": "terraform",
      "created_at": "2026-11-30T14:02:11Z",
      "updated_at": "2026-11-30T14:02:11Z"
    }
  ],
  "next_page_token": null
}

POST/v1/zones

Create a zone

Needs the zones:write scope.

Headers

  • Name
    Idempotency-Key
    Type
    string
    Description

    A unique key, such as a UUID. Repeating a successful request with the same key within 24 hours returns the original response; reusing it for a different request returns 422; repeating it while the first is still running returns 409 with Retry-After.

Required attributes

  • Name
    name
    Type
    string
    Description

    Display name, unique within the organization.

  • Name
    area_ids
    Type
    array of strings
    Description

    The areas in the zone, 1 to 1000.

Optional attributes

  • Name
    description
    Type
    string
    Description

    Free text.

  • Name
    labels
    Type
    object
    Description

    Labels.

  • Name
    managed_by
    Type
    string
    Description

    The tool that manages this resource. Terraform sets terraform.

Request

POST
/v1/zones
curl -X POST https://acme.ext.passway.com/v1/zones \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Amenities",
    "area_ids": [
      "area_01jd8k3m2v9x4q7r5t6w8y0z1a"
    ],
    "labels": {
      "passway.example/cost-center": "4410",
      "team": "facilities"
    },
    "managed_by": "terraform"
  }'

Response

{
  "id": "zone_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "name": "Amenities",
  "description": "…",
  "area_ids": [
    "area_01jd8k3m2v9x4q7r5t6w8y0z1a"
  ],
  "labels": {
    "passway.example/cost-center": "4410",
    "team": "facilities"
  },
  "managed_by": "terraform",
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

GET/v1/zones/{zone_id}

Get a zone

Needs the zones:read scope.

Path parameters

  • Name
    zone_id
    Type
    string
    Description

    Zone ID: zone_ followed by 1 to 64 lowercase letters and digits.

Request

GET
/v1/zones/{zone_id}
curl https://acme.ext.passway.com/v1/zones/zone_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "id": "zone_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "name": "Amenities",
  "description": "…",
  "area_ids": [
    "area_01jd8k3m2v9x4q7r5t6w8y0z1a"
  ],
  "labels": {
    "passway.example/cost-center": "4410",
    "team": "facilities"
  },
  "managed_by": "terraform",
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

PATCH/v1/zones/{zone_id}

Update a zone

A JSON merge patch (RFC 7396): fields in the body replace the current ones, null removes a field where the schema allows null, and objects such as labels are merged. Requires If-Match with the current etag.

Needs the zones:write scope.

Path parameters

  • Name
    zone_id
    Type
    string
    Description

    Zone ID: zone_ followed by 1 to 64 lowercase letters and digits.

Headers

  • Name
    If-Match
    Type
    string
    Description

    The resource's current etag, in double quotes. Required.

Optional attributes

  • Name
    name
    Type
    string
    Description

    New name.

  • Name
    description
    Type
    string
    Description

    New description.

  • Name
    area_ids
    Type
    array of strings
    Description

    New areas, replacing the current ones.

  • Name
    labels
    Type
    object
    Description

    Labels to set or remove, or null to remove every label. Can be null.

  • Name
    managed_by
    Type
    string
    Description

    New managing tool, or null to clear it. Can be null.

Request

PATCH
/v1/zones/{zone_id}
curl -X PATCH https://acme.ext.passway.com/v1/zones/zone_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H 'If-Match: "3f9a"' \
  -H "Content-Type: application/merge-patch+json" \
  -d '{
    "labels": {
      "old-label": null,
      "team": "security"
    }
  }'

Response

{
  "id": "zone_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "name": "Amenities",
  "description": "…",
  "area_ids": [
    "area_01jd8k3m2v9x4q7r5t6w8y0z1a"
  ],
  "labels": {
    "passway.example/cost-center": "4410",
    "team": "facilities"
  },
  "managed_by": "terraform",
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

DELETE/v1/zones/{zone_id}

Delete a zone

A zone that access profiles name returns 409 with /problems/has-dependents.

Needs the zones:write scope.

Path parameters

  • Name
    zone_id
    Type
    string
    Description

    Zone ID: zone_ followed by 1 to 64 lowercase letters and digits.

Headers

  • Name
    If-Match
    Type
    string
    Description

    The resource's current etag, in double quotes. Required.

Request

DELETE
/v1/zones/{zone_id}
curl -X DELETE https://acme.ext.passway.com/v1/zones/zone_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H 'If-Match: "3f9a"'

Response

204 Deleted