Skip to content
Website API / Bot traffic

Replace crawler rules

PUThttps://<your Reveata origin>/api/v1/websites/{website}/bots/rules

Replaces the allow and block rules per crawler. Needs the admin role.

Related: Bot traffic report and Get crawler rules in Bot traffic.

Try in playground

Request

Path parameters

websitestringrequired

Website id or domain, e.g. example.com

1–253 characters

Headers

Authorizationstringrequired

Bearer followed by an account token or an OAuth access token with the settings:write scope.

Content-Typestringrequired

Send the body as JSON.

One of: application/json

Body fields

rulesobject[]required

Up to 200 items

rules[].tokenstringrequired

1–80 characters · Pattern: ^[A-Za-z0-9._-]+$

rules[].rulestringrequired

One of: allow, block

Response

Rules.

{
  "status": "string",
  "data": {
    "rules": [
      {
        "token": "string",
        "rule": "allow"
      }
    ],
    "robotsTxt": "string"
  }
}

Response fields

FieldTypeDescription
status"ok"
dataobject
data.rulesobject[]
data.rules[].tokenstring
data.rules[].rulestring
data.robotsTxtstring