v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-19273210655.1 KB
Security Rules

Create site security rule

Add a new security rule to the site.

Processing mode: <small><code>async</code></small>

post/orgs/{organization}/servers/{server}/sites/{site}/security-rules

Path parameters

organizationstring required

The organization slug

serverinteger required

The server ID

siteinteger required

The site ID

Request body

namestring required

The name of the security rule.

pathstring

The path for the security rule.

Example request

{
  "name": "Restricted Access",
  "path": "/admin",
  "credentials": [
    {
      "username": "admin",
      "password": "secret123"
    }
  ]
}

Response

SecurityRuleResource