Network Rules

Create Network Rule

POST
/v0/projects/{idOrSlug}/network-rules

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string

Request Body

application/json
  1. body
ipAddress*string
allowed*boolean

Response Body

NetworkRuleRecord

application/json
  1. response
id*string
projectId*string
ipAddress*string
allowed*boolean
createdAt*string
curl -X POST 'https://api.faststats.dev/v0/projects/string/network-rules' \  -H 'Content-Type: application/json' \  -d '{  "ipAddress": "string",  "allowed": true}'
{  "id": "string",  "projectId": "string",  "ipAddress": "string",  "allowed": true,  "createdAt": "string"}