Scans

Rescan PR

Trigger a rescan of a PR/MR scan. Pass the ID of a previous PR scan and the system will re-fetch the pull request and create new scan(s). Supports GitHub PRs and GitLab MRs. Set force to true to bypass duplicate detection and run a full scan instead of incremental refresh, even if a scan for the current commit already exists.

post/api/v2/scans/rescanPR

Request

  • Base URL
    https://zeropath.com
  • Auth
    API key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret

Request body

scanIdstring required

ID of a previous PR scan to rescan

forceboolean

When true, bypasses duplicate detection and runs a full scan instead of incremental refresh, even if a scan for the current commit already exists

organizationIdstring

Organization ID (optional)

Response

Rescan result

outcome'scans_created' | 'skipped_duplicate' | 'skipped_not_enabled' | 'skipped_no_targets' | 'closed' | 'error' required

The outcome of the rescan request

messagestring required

Human-readable description of the outcome

scanCountnumber

Number of scans created (only present when outcome is scans_created)

Changes

No recorded changes to this operation across all 1 revision of this API.