> ## 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.

# Release の unyank

> 以前 yank したバージョンを復元。

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

認証：APIキー必須（`Authorization: Bearer <API Key>`）。App 作者のみ。他者は `404`。

yank の逆。当該版は再び新規実行を受け latest 解決に参加。冪等。

## リクエスト

### パスパラメータ

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

<ParamField path="version" type="string" required>
  バージョン番号。
</ParamField>

### リクエスト例

```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/unyank"
```

## レスポンス

### 200 成功

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

ペイロードは `data` に包まれます。フィールド:

<ResponseField name="version" type="string" required>
  バージョン番号。
</ResponseField>

<ResponseField name="yanked" type="boolean" required>
  現在の yank 状態。
</ResponseField>

### エラー

| HTTP | `code`              | `category`  | Description    |
| ---- | ------------------- | ----------- | -------------- |
| 401  | `unauthorized`      | `forbidden` | API キー欠落または無効。 |
| 404  | `version-not-found` | `not_found` | そのバージョンが存在しない。 |

エラー応答は `{"error": {code, category, message, retryable}}` です。<a href="/docs/jp/datahub/api/reference/introduction#errors">エラー</a> を参照。

## クライアントライブラリ

Python / JavaScript SDK はまだこのエンドポイントをラップしていません。REST を直接呼び出してください。
