---
title: "Cancel runtime validation"
method: POST
path: "/api/v2/runtimeValidation/cancelValidation"
tags: ["Runtime Validation"]
---

# Cancel runtime validation

`POST /api/v2/runtimeValidation/cancelValidation`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/runtimeValidation/cancelValidation`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Move a PENDING or PROCESSING runtime validation run to CANCELLED and set cancelledAt. Terminal runs cannot be cancelled again.

## Request body

- RuntimeValidationCancelValidationRequest
  - `organizationId` string
  - `runId` string, required

## Response `200`

Cancelled validation run

- RuntimeValidationRunSummary
  - `id` string, required
  - `profileId` string, required
  - `codeScanId` string, required
  - `status` 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELLED', required: Queue and lifecycle status for a runtime validation run.
  - `triggerReason` 'USER_REQUESTED' | 'AUTO_AFTER_SCAN', required: Why the validation run was created.
  - `triggeredByUserId` string, nullable, required
  - `startedAt` string, date-time, nullable, required
  - `completedAt` string, date-time, nullable, required
  - `cancelledAt` string, date-time, nullable, required
  - `summary` string, nullable, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400`: Error Response
- `401`: Error Response
- `403`: Error Response
- `404`: Error Response
- `409`: Error Response
- `412`: Error Response

---

[API](https://skmtc.dev/zeropath/apis/zeropath-api.md) - [All operations](https://skmtc.dev/zeropath/apis/zeropath-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zeropath/apis/zeropath-api/revisions/126e9c80ba0d?raw)
