Skip to main content

Stop Running Pentest Early (Keep Report)

POST 

/pentests/:pentest_id/stop

Ask the engine to finish a running pentest now with what it has found. The run stays running while the engine wraps up; its findings and report then arrive as on a normal completion and the pentest ends completed with stopped_early: true. Returns 404 when the pentest does not exist, 409 when it is not running or a stop is already pending, 409 engine_cannot_stop when the engine does not support finishing early (nothing is changed), and 502 when the engine cannot be reached. Cancel stays the hard abort.

Request​

Responses​

Successful Response