Start a DAST scan by URL
Uses the supplied URL or the URL saved in repository security settings. The target is validated in both cases. An explicit URL updates the existing UI settings after a successful start. Returns after SolidPoint accepts the scan; status and results become available through the REST read endpoints. The new scan has type SCAN_TYPE_CLOUD_DAST and origin BUILT_IN.
Request
POST
https://appsec.sourcecraft.tech/v1/scans/dast
Query parameters
|
Name |
Description |
|
gitRepo |
Type: string Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid). Pattern: Example: |
Body
application/json
{
"url": "https://app.example.com"
}
|
Name |
Description |
|
url |
Type: string Public HTTPS target on the default port, without credentials, resolving only to Yandex Cloud addresses. Omit or leave blank to use the URL saved in repository security settings. Example: |
Responses
202 Accepted
SolidPoint accepted the DAST scan
Body
application/json
{
"scanUuid": "example"
}
|
Name |
Description |
|
scanUuid |
Type: string UUID of the new DAST scan; use the scan and defect-group endpoints to read its status and results Example: |
400 Bad Request
Missing gitRepo, malformed JSON or invalid explicit URL
401 Unauthorized
Missing or invalid authorization header
403 Forbidden
Permission denied
404 Not Found
Repository not found
409 Conflict
Configured DAST URL is missing or invalid, or no repository commit can be resolved
500 Internal Server Error
Failed to prepare the DAST scan
502 Bad Gateway
SolidPoint could not start the scan
503 Service Unavailable
SolidPoint integration is disabled