Create a new SAST scan and assign it to a project. When initiating a scan you can send a media type header (cxOrigin) which indicates which client is being used to send the scan request (e.g. Jenkins, Bamboo, TeamCity, Maven, etc.). If not defined, default is Other.
- POST /sast/scanSettings and update the SAST scan preset and configuration settings
- POST /sast/scans and create a new SAST scan.
Authorization: Bearer <access token value>
scan=[body] – Scan details:
projectId=[integer] – Unique Id of the project to be scanned
isIncremental=[boolean] – Specifies whether the requested scan is incremental or full scan
isPublic=[boolean] – Specifies whether the requested scan is public or private
forceScan=[boolean] – Specifies whether the code should be scanned or not, regardless of whether changes were made to the code since the last scan.
Code: 201 Created
Code: 400 Bad Request
Creates a new SAST scan and assigns it to a project. If the request fails, it returns an error response. Must be a valid project in order to create a new scan.