Scan a file for vulnerabilities
POST
/api/v4/projects/{id}/security_scans/sast/{sast_endpoint}
Scans a specified file for security vulnerabilities using SAST.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
file_path
required
The project relative path of the file to scan
string
content
required
The content of the file to scan
string
Examplegenerated
{ "file_path": "example", "content": "example"}Responses
Section titled “Responses”OK
Bad request
Unauthorized
Not Found