Skip to main content

Reopen a failed assessment

POST 

/api/v1/assessments/:assessment_id/reopen

Put a failed assessment back into a state the customer can act on.

One verb for both failures, because the customer's question is the same: this did not work, let me try again. The server picks the furthest-forward state it can safely restore, and the response says where it landed.

  • start_failed returns to ready. The spawn never ran, so the validation and merged archive are still good and no re-scan is needed. Capped at MAX_START_RETRIES attempts.
  • failed returns to draft, which is editable, startable and deletable. A failed run could not be removed at all before, only archived.

Credits were refunded when the run failed; /start charges again. 409 when the status is neither, when a failed run's cause was the customer's own cancellation, when the retry cap is spent, or when the run left findings or a report behind, since reopening would then put a delete button in front of delivered work.

  • Scope required: assessments:update + manager-or-above role.

Request

Responses

Successful Response