Scan a file for vulnerabilities.
POST
/api/v4/projects/{id}/security_scans/sast/{sast_endpoint}
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Body required
Section titled “ Request Body required ” Media type application/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
Example generated
{ "file_path": "example", "content": "example"}Responses
Section titled “ Responses ”OK
Bad request
Unauthorized
Not Found