Skip to main content
POST
Ban customer
Required scopes: banlist_write Note: At least one of ip and customer_id is required. If ip is provided, it cannot match the license’s monitoring.ip_mask property.

Authorizations

Authorization
string
header
required

Use your account ID as the username and your personal access token (PAT) as the password, or pass a Base64-encoded value directly in the Authorization header. For more information, see the personal access tokens guide.

Body

application/json
seconds
integer
required

The ban duration in seconds. Must be a positive integer.

ip
string

The customer's IP address. At least one of ip and customer_id is required.

customer_id
string

The customer ID. At least one of ip and customer_id is required.

Response

200

Customer banned successfully.