Updates a scan
PUT
/v2/scans/{id}Last modified: 3 days ago
Update a scan
Request
Path Params
id
string
required
Body Params application/json
scan
object
optional
name
string
optional
The scan name
Example:
My Scan
comment
string
optional
The scan comment
Example:
My comment
target_id
string <uuid>
optional
The target uuid
schedule_id
string <uuid>
optional
The schedule uuid. Pass 0 to remove an existing schedule
config_id
string <uuid>
optional
The config uuid
scanner_id
string <uuid>
optional
The scanner uuid
Example
{
"scan": {
"name": "My Scan",
"comment": "My comment",
"target_id": "d3bcdc92-4191-401b-ad0c-42056c6efab9",
"schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",
"config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b",
"scanner_id": "43593f58-da3f-45f0-a7bf-8763ef29bdf1"
}
}
Request samples
Responses
OK(200)
Unauthorized(401)
Record Not Found(404)
Parameter Error(422)
HTTP Code: 200
Content Type : JSONapplication/json
Scan updated
Data Schema
object {0}
Example
{}
Last modified: 3 days ago