---
title: "Create ACL Rule"
method: POST
path: "/v1/sites/{siteId}/acl-rules"
tags: ["Access Control (ACL Rules)"]
---

# Create ACL Rule

`POST /v1/sites/{siteId}/acl-rules`

## Request

- Base URL: `https://api.ui.com/v1/connector/consoles/942A6FF664C0000000000964970E0000000009E710560000000068A9873F:9999999999/proxy/network/integration`
- URL: `https://api.ui.com/v1/connector/consoles/942A6FF664C0000000000964970E0000000009E710560000000068A9873F:9999999999/proxy/network/integration/v1/sites/{siteId}/acl-rules`
- Auth: none declared
- TypeScript: <https://skmtc.dev/ubiquiti/apis/unifi-network-api/docs/v1/sites/:siteId/acl-rules/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new user defined ACL rule on a site.

## Path parameters

- `siteId` string, uuid, required

## Request body

- ACLRuleUpdate
  - `type` string, required
  - `enabled` boolean, required
  - `name` string, required: ACL rule name
  - `description` string: ACL rule description
  - `action` 'ALLOW' | 'BLOCK', required: ACL rule action
  - `enforcingDeviceFilter` ACLRuleDeviceFilter
    - `type` string, required
  - `index` integer: ACL rule index. This property is deprecated and has no effect. Use the dedicated ACL rule reordering endpoint.
  - `sourceFilter` unknown
  - `destinationFilter` unknown

## Response `201`

Created

- ACLRule
  - `type` string, required
  - `id` string, uuid, required
  - `enabled` boolean, required
  - `name` string, required: ACL rule name
  - `description` string: ACL rule description
  - `action` 'ALLOW' | 'BLOCK', required: ACL rule action
  - `enforcingDeviceFilter` ACLRuleDeviceFilter
    - `type` string, required
  - `index` integer, required: ACL rule index. Lower index has higher priority
  - `sourceFilter` unknown
  - `destinationFilter` unknown
  - `metadata` UserDefinedOrDerivedEntityMetadata, required
    - `origin` string, required

---

[API](https://skmtc.dev/ubiquiti/apis/unifi-network-api.md) - [All operations](https://skmtc.dev/ubiquiti/apis/unifi-network-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ubiquiti/apis/unifi-network-api/revisions/822d5af98ce5?raw)
