Discard a pentest draft
Copy page
Discard a pentest draft
Deletes a pentest draft and its saved login details. To end a pentest that has already started, use POST /scans/{id}/stop. You need the member role or above.
Request
DELETE /pentests/{id}
Send an API key
with the write scope
in the X-Api-Key header.
Path parameters
| Parameter | Description |
|---|---|
id string, required |
Responses
200 OK
| Field | Description |
|---|---|
scan_id string (uuid), required | |
discarded boolean, required |