> ## Documentation Index
> Fetch the complete documentation index at: https://www.octoparse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Yank a release

> Yank a version: reject new runs, stop resolving as latest. Reversible.

**`POST`** `https://api-datahub.octoparse.com/v1/data-apps/{app_id}/releases/{version}/yank`

Authentication: API key required (`Authorization: Bearer <API Key>`). App author only; others get `404`.

Version-level yank: this version rejects new runs (`422 version-yanked`) and is skipped when resolving latest. In-flight runs are unaffected. Detail and contract pinned to this version remain readable (callers need them for troubleshooting). No rows are deleted; builds and the audit chain stay put. Restore with the paired unyank endpoint.

## Request

### Path parameters

<ParamField path="app_id" type="string" required>
  App reference.
</ParamField>

<ParamField path="version" type="string" required>
  Version number.
</ParamField>

### Example request

```bash theme={null}
curl -X POST \
  -H "Authorization: Bearer $OCTOPARSE_API_KEY" \
  "https://api-datahub.octoparse.com/v1/data-apps/carol/reviews-query/releases/1.2.0/yank"
```

## Response

### 200 success

```json theme={null}
{
  "data": {
    "version": "string",
    "yanked": false
  }
}
```

The payload is wrapped in `data`. Fields:

<ResponseField name="version" type="string" required>
  Version number.
</ResponseField>

<ResponseField name="yanked" type="boolean" required>
  Current yanked state.
</ResponseField>

### Errors

| HTTP | `code`              | `category`  | Description                  |
| ---- | ------------------- | ----------- | ---------------------------- |
| 401  | `unauthorized`      | `forbidden` | Missing or invalid API key.  |
| 404  | `version-not-found` | `not_found` | That version does not exist. |

Error responses use `{"error": {code, category, message, retryable}}`. See <a href="/docs/en/datahub/api/reference/introduction#errors">Errors</a>.

## Client libraries

The Python and JavaScript SDKs do not wrap this endpoint yet. Call REST directly.
