Skip to main content
POST
Create site security rule

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Scopes

site:manage-security

Allow members to configure HTTP Basic Authentication

Path Parameters

organization
string
required

The organization slug

server
integer
required

The server ID

site
integer
required

The site ID

Body

application/json
name
string
required

The name of the security rule.

Maximum string length: 255
Example:

"Restricted Access"

credentials
object[]
required

The credentials for the security rule.

Minimum array length: 1
path
string

The path for the security rule.

Maximum string length: 255
Example:

"/admin"

Response

SecurityRuleResource

data
SecurityRuleResource · object
required