v1
latestOpenAPI 3.0.02026-07-249055687.1 KBCreate diff scan from full scan IDs
Create a diff scan from two existing full scan IDs. The full scans must be in the same repository. Returns metadata about the diff scan. Once the diff scan is created, fetch the diff scan from the api_url URL to get the contents of the diff.
This endpoint consumes 1 unit of your quota.
This endpoint requires the following org token scopes: - diff-scans:create
- full-scans:list
Path parameters
The slug of the organization
Query parameters
The ID of the before/base full scan (older)
The ID of the after/head full scan (newer)
A description of the diff scan. This will be used in the diff report and can be used to provide context for the changes made.
An external URL to associate with the diff scan. This can be a link to a pull request, issue, or any other relevant resource.
Set to true when running a diff between a merged commit and its parent commit in the same branch. Set to false when running diffs in an open PR between unmerged commits.
Set to "redirect" to receive a 302 redirect to the existing diff scan instead of a 409 error when a duplicate is detected.
Response
The details of the created diff scan.