---
title: "Cancel"
method: POST
path: "/v2/discovery/cancel"
tags: ["Discovery"]
---

# Cancel

`POST /v2/discovery/cancel`

Cancel a discovery run that is ongoing using the discovery request token specified in the discover operation.

## Request body

- DiscoveryCancelRequestModel — Discovery cancel request
  - `id` string — Id of discovery request
  - `context` OperationContextModel — Operation log model
    - `AuthorityId` string — User
    - `Time` string, date-time — Operation time

## Response `200`

The operation was successful or the response payload contains relevant error information.

- boolean

## Other responses

- `400` — The passed in information is invalid
- `408` — The operation timed out.
- `500` — An unexpected error occurred

---

[API](https://skmtc.net/azure/apis/opcpublisher.md) · [All operations](https://skmtc.net/azure/apis/opcpublisher/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/opcpublisher/revisions/8eac19a554d6/schema)
