v1

latestOpenAPI 3.0.32026-07-22238629559.2 KB
ScansService

Retry Failed SMS Scans

Retry one or more failed Semgrep Managed Scans (SMS). Only scans that are SMS and have failed or never finished can be retried. Send a single scan ID or multiple; returns one task per successful retry and one error per failed retry.

post/api/v2/deployments/{deploymentId}/scans/retry

Path parameters

deploymentIdstring int64 required

The unique numerical identifier of the deployment associated with the scan.

Example:1234

Request body

scanIdsstring[]

Scan IDs to retry (SMS scans that failed or never finished). Send one ID for single retry or multiple for batch. Maximum 10 IDs per request.

Example request

{
  "scanIds": [
    12345,
    12346
  ]
}

Response

OK