---
title: "POST /v2/domains/{domainIdentifier}/metadata-generation-runs/{identifier}/cancel"
method: POST
path: "/v2/domains/{domainIdentifier}/metadata-generation-runs/{identifier}/cancel"
---

# POST /v2/domains/{domainIdentifier}/metadata-generation-runs/{identifier}/cancel

`POST /v2/domains/{domainIdentifier}/metadata-generation-runs/{identifier}/cancel`

Cancels the metadata generation run.

Prerequisites:

*   The run must exist and be in a cancelable status (e.g., SUBMITTED, IN\_PROGRESS).
    
*   Runs in SUCCEEDED status cannot be cancelled.
    
*   User must have access to the run and cancel permissions.

## Path parameters

- `domainIdentifier` string, required
- `identifier` string, required

## Response `200`

Success

- CancelMetadataGenerationRunOutput

## Other responses

- `480` — InternalServerException
- `481` — ResourceNotFoundException
- `482` — AccessDeniedException
- `483` — ThrottlingException
- `484` — ConflictException
- `485` — ValidationException
- `486` — UnauthorizedException

---

[API](https://skmtc.net/aws/apis/datazone.md) · [All operations](https://skmtc.net/aws/apis/datazone/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/datazone/versions/055599054b53/schema)
