Added

AI pentests — Cancel a run

AI Pentests API — Cancel a run

A new endpoint is available to cancel an in-progress AI pentest run: a full test, retest or release test.

Endpoint: POST /v1/ai-pentests/{ai_pentest_id}/runs/{id}/cancel/

The response is the cancelled run, in the same format as GET /v1/ai-pentests/{ai_pentest_id}/runs/{id}/. Retests and release tests are cancelled straight away. A full test is cancellation_pending until it has stopped. Returns 409 if the run has finished or is already being cancelled, or 503 if it couldn't be cancelled, in which case try again later.

Runs have a new status value, cancellation_pending, for a full test that's being cancelled.

For more information, see the API documentation for AI pentests.