Home / Monitoring URLs and rules

Monitoring URLs and rules

Prepare tracked URLs and rules before a new check. Learn how project defaults, page rule assignments and dry-run requests affect the result.

On this page

URLs and rules affect only future reports. Historical reports continue to show data calculated when the report was run.

409 rule_in_use: This rule is used for automatic URL additions, imports and the API. Before deleting it, select and save another rule for new pages.

Scopes

  • GET → diff-urls:read, diff-rules:read
  • POST / PATCH / DELETE → diff-urls:write, diff-rules:write
  • POST /public-api/v1/diff-projects/{diff_project_id}/urls?dry_run=true validates URLs without saving them.
  • Idempotency-Key is recommended for bulk URL imports.
  • For POST, an omitted or null alert_rule_id pins the current rule for new pages from the URL list settings. PATCH with null explicitly assigns that current rule to the selected URLs. Later changes to the setting leave existing pages unchanged; reposting an existing URL preserves its previous rule. If no selection is saved, the response is 409 default_rule_not_configured.
  • Deleting a URL does not remove historical rows from earlier reports.
  • A rule can be deleted only if it is not the default and no URLs are explicitly assigned to it.

URLs: urls is an array of up to 1000 absolute HTTP/HTTPS addresses. Read url_md5 from the normalized API result; do not compute it from the original input. An omitted or null alert_rule_id uses the project rule; effective_rule_id identifies the applied rule and uses_default_rule is always false. dry_run=true does not save URLs: check would_create_count and errors. Bulk assignment accepts 1–10000 url_md5s. Pagination: limit 1–10000 (default 1000), offset from 0.

Rule: name has 1–32 characters; parsing_javascript, screenshot_desktop, screenshot_mobile and available are booleans. screenshot_delay is 1–10 seconds with one decimal place; percent_diff_html/text/meta is 0–100%; load_time_more is 0.1–10 seconds; min_page_size/max_page_size is 0–10000000 bytes, minimum no greater than maximum. Get expected_http_status values from rules/expected-http-statuses. tracked_tags allows up to 6 entries, unique number 1–6, mode css or regex, pattern up to 1000 characters. missing_html/appearing_html allows up to 20 strings of 1000 characters. Optional thresholds accept null.

Creating a rule returns 201 with data; PATCH returns 200 with data; DELETE returns 204 with no body. PATCH replaces the editable settings: send all values you want to keep, including name. Omitted booleans become false, arrays are cleared and optional values become null. Fetch the rule with GET first. The project default rule and rules explicitly assigned to URLs cannot be deleted.

URL validation

http/httpsOnly absolute HTTP/HTTPS URLs are supported.

IDNInternationalized domain names are supported and normalized to Punycode.

domain_blockedThe domain is blocked by the product blacklist.

unsafe_urlThe URL was rejected by SSRF protection.