Define the SAST scan settings according to a project (preset and engine configuration).
/cxrestapi/sast/scanSettings
POST
Authorization: Bearer <access token value>
Content-Type: application/json;v=1.0
cxOrigin: {request_origin}
scanSettings=[body] – Scan settings:
projectId=[integer] – Unique Id of the project
presetId=[integer] – Unique Id of the preset
engineConfigurationId=[integer] – Unique Id of the engine configuration
Code: 200 OK
Code: 400 Bad Request
{
"id": 2,
"link": {
"rel": "self",
"uri": "/sast/scanSettings/2"
}
}
Defines the SAST scan settings according to a project. If the request fails, it returns an error response. Defines project scan settings regardless of whether the scan has been created.
|