Web Scanner Rules

Manage suppression rules attached to a web scanner. Rules tell the scanner to ignore specific cookies, hostnames, or full script URLs during crawl analysis. Rules are scoped to a parent scanner — list, find, create, update, or delete by rule id.

GET
/rest/v1/web-scanner-rules
AuthorizationBearer <token>

Ours Privacy API key

In: header

Query Parameters

scannerId*string

The web scanner whose suppression rules should be returned.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://app.oursprivacy.com/rest/v1/web-scanner-rules?scannerId=string"
{
  "entities": [
    {
      "id": "string",
      "scannerId": "string",
      "accountId": "string",
      "name": "string",
      "reason": "approved",
      "notes": "string",
      "priority": 0,
      "cookiePatterns": [
        "string"
      ],
      "domainPatterns": [
        "string"
      ],
      "scriptPatterns": [
        "string"
      ],
      "createdAt": "string",
      "updatedAt": "string",
      "createdByUserId": "string",
      "updatedByUserId": "string"
    }
  ]
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
POST
/rest/v1/web-scanner-rules
*object
array<string>
array<string>
array<string>
AuthorizationBearer <token>

Ours Privacy API key

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://app.oursprivacy.com/rest/v1/web-scanner-rules" \  -H "Content-Type: application/json" \  -d '{    "scannerId": "string",    "name": "string",    "priority": 1  }'
{
  "id": "string",
  "scannerId": "string",
  "accountId": "string",
  "name": "string",
  "reason": "approved",
  "notes": "string",
  "priority": 0,
  "cookiePatterns": [
    "string"
  ],
  "domainPatterns": [
    "string"
  ],
  "scriptPatterns": [
    "string"
  ],
  "createdAt": "string",
  "updatedAt": "string",
  "createdByUserId": "string",
  "updatedByUserId": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
GET
/rest/v1/web-scanner-rules/{id}
AuthorizationBearer <token>

Ours Privacy API key

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://app.oursprivacy.com/rest/v1/web-scanner-rules/string"
{
  "id": "string",
  "scannerId": "string",
  "accountId": "string",
  "name": "string",
  "reason": "approved",
  "notes": "string",
  "priority": 0,
  "cookiePatterns": [
    "string"
  ],
  "domainPatterns": [
    "string"
  ],
  "scriptPatterns": [
    "string"
  ],
  "createdAt": "string",
  "updatedAt": "string",
  "createdByUserId": "string",
  "updatedByUserId": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
PATCH
/rest/v1/web-scanner-rules/{id}
*object
array<string>
array<string>
array<string>
AuthorizationBearer <token>

Ours Privacy API key

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://app.oursprivacy.com/rest/v1/web-scanner-rules/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "string",
  "scannerId": "string",
  "accountId": "string",
  "name": "string",
  "reason": "approved",
  "notes": "string",
  "priority": 0,
  "cookiePatterns": [
    "string"
  ],
  "domainPatterns": [
    "string"
  ],
  "scriptPatterns": [
    "string"
  ],
  "createdAt": "string",
  "updatedAt": "string",
  "createdByUserId": "string",
  "updatedByUserId": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
DELETE
/rest/v1/web-scanner-rules/{id}
AuthorizationBearer <token>

Ours Privacy API key

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://app.oursprivacy.com/rest/v1/web-scanner-rules/string"
{
  "id": "string",
  "deleted": true
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}

How is this guide?